Can I do dynamic queries? #6856
mrange
started this conversation in
Guidelines
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I hope this hasn't been already in the docs or in the issues but I didn't find anything.
First, I am a big fan of what you do and especially Strawberry shake. It works great for us.
We do have a bit of a need for dynamic queries and was wondering if you have any tips around that. We interact with an ERP system that have 12 dimensions which meaning depends on the config.
We can fetch batches like this
Let's say in this case the dimension1 is department, dimension2 is project and dimension3 is order.
Now for another customer dimension4 is department, dimension7 is project and dimension1 is order. Then the query should look like this:
If we talked to the GQL directly we could do some string interpolation but I don't know of some way to inject that into Strawberry Shake.
What we do today is requesting all 12 dimensions and sort it out in C# but that has a few drawbacks to us.
So I am just hoping for some tips and tricks on how we could do this smarter.
Hope I made some sense.
Mårten
Beta Was this translation helpful? Give feedback.
All reactions