Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoCreate option for db.query function #22

Closed
kevinprotoss opened this issue Mar 12, 2015 · 1 comment
Closed

autoCreate option for db.query function #22

kevinprotoss opened this issue Mar 12, 2015 · 1 comment
Labels
Question Probably not a bug.

Comments

@kevinprotoss
Copy link

Hi,

Maybe it's only a suggestion. Is it possible to implement some options like autoCreate in db.collection function for db.query function as well. If I use db.query to make some modification query, such as insert, arangoDB instance will always complain about collection not existing.

Bg,
Kevin

@pluma
Copy link
Contributor

pluma commented Mar 12, 2015

Not at the driver level, no. You could parametrize the collection names (i.e. pass them in as parameters to the query using the @@ syntax) and wrap db.query in a function that performs the necessary steps for each collection name in the parameters.

@pluma pluma added the Question Probably not a bug. label Mar 12, 2015
@pluma pluma closed this as completed Apr 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Probably not a bug.
Projects
None yet
Development

No branches or pull requests

2 participants