Message of the day:
Anything GraphQL and SilverStripe related.
likes GraphQL. The same API, but not the hassle of REST or SOAP
Been a while since I’ve looked at this code, but from memory, the filtering inputs are a service, so it should be easy to plug into a nested query. I’ll look at it today and post something here.
anyway, is it possible, via yaml only, to serve output of a method as a field in query?
@unclecheese So it is not possible to created a filter for a nested query like there is in the docs example? (for example
@unclecheese tried my first gatsby build, but I get this error: > WebpackError: Called getHierarchy before initHierarchy(). Are you using this function outside of the useSilverstripe() hook? triggered by MainNav.getMenu()
sorry to hear that 😞
Yeah, nested queries are a bit second class citizens at the moment. You might have to do this as a separate top-level query with filters for the primary key
just getting a Field not found error
yeah, but cant really get it to work either