da0099
February 10, 2022, 7:21pm
1
Are there any negative consequences in using the function, Create
, to create roles, indexes, functions, and collections? For example:
Create(
Collections(),
{name: "evan_rob_tyson", history_days: 0}
)
// vs.
CreateCollection({name: "evan_rob_tyson", history_days: 0})
ewan
February 10, 2022, 7:26pm
2
None that I am aware of.
CreateCollection
are task-specific functions that perform the same operation as your alternative. Use whichever kind of query makes the most sense to you.
system
Closed
February 12, 2022, 7:26pm
3
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.