简体   繁体   中英

Create Dynamic collections with ArangoDB using Spring JPA

I want to create Arango collection at runtime through my application apis using Spring JPA.

How can I create a collection on runtime based on the inputs from request for collection name?

I have tried SPEL but I am getting ILLEGAL Name error when I am trying with dynamic inputs from the request

Any help on this, I am stuck with this?

Probably the easiest way to do it is via the HTTP API of Arango.

Look at these pages to get the general idea on how the requests need to be put together (it's pretty simple):

Also, on the Web UI of your ArangoDB, click "Support" on the left sidebar, and then "REST API". There you can even try out the requests and get the exact URL, parameters, etc right before putting it in your code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM