Nostradamos / plantjournal-api-sqlite3

0 stars 0 forks source link

Server side resolving for parent/clonedFrom... attribute #31

Open Nostradamos opened 7 years ago

Nostradamos commented 7 years ago

Currently we can only get the plantIds of the parents, it would be nice to make it possible to get all wanted information also about the parents if we query plants with a selected depth. It's possible to do this client side (and also needed) but we need x (x=depth) requests to the server and could do this in 1 if we allow server side resolving.

Would be helpful for those attributes: generationParents, plantClonedFrom, environmentParent (https://github.com/Nostradamos/plantjournal-api-sqlite3/issues/39)

Nostradamos commented 7 years ago

https://sqlite.org/lang_with.html