It has no relationship to SQL, it's an elegant way to request what you want. What else do you think is better?

Reply to this note

Please Login to reply.

Discussion

send mongo queries to your server

don’t even try to sanitize them

πŸƒπŸ’¨

You only have one data source?

That sounds dangerous.

Define "better". To me, for APIs, better is something that is faster and push enabled. This means custom built endpoints.

GraphQL might make sense for certain use cases where you need custom queries, just like SQL, but it's too slow and wasteful for static endpoints.