Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Omar Elkadi
PStA WP2 OmarElkadi1
Commits
c4a26cae
Commit
c4a26cae
authored
Jul 06, 2021
by
Omar Elkadi
Browse files
nothing
parent
04fc3a1b
Changes
1
Show whitespace changes
Inline
Side-by-side
server/src/routes/patientRoutes.ts
View file @
c4a26cae
...
...
@@ -72,10 +72,10 @@ export class patientRoutes {
// create the collection if not exist
try
{
await
db
.
createCollection
(
"
Students
"
,{}
)
console
.
log
(
"
C
ollection Student is created
"
)
console
.
log
(
"
new c
ollection Student is created
"
)
}
catch
(
error
){
console
.
log
(
"
Collection already exists, so it
did
not be created
"
)
console
.
log
(
"
Collection
is
already exists, so it
would
not be created
"
)
}
// define a collection and insert a new record
try
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment