Building GraphQL queries programmatically

I'm new to Xano and even newer to GraphQL. There doesn't seem to be any extension for building GraphQL queries programmatically similar to, for example, this npm package.

I'd like to know if anyone has experience with custom functions for building the query string. I like to have a set of custom functions for programmatically querying REST APIs to avoid repeating myself, so I'm wondering how I could achieve this with GraphQL. Based on the npm package linked above, I imagine one way of going about it would be to build the query as an object and use a helper function to convert it into a GraphQL query. Any ideas?

Other
1
1 reply