View more context

 

MichalKleiner

we used a mix… couldn’t be bothered architecting every single type, but we wanted some structure to it, e.g. title, classname, taxonomy terms and what not and the rest serialised or pre-rendered

Bjorn Bojumble

yeah pre rendered is interesting, but then youre moving templating out of jsx into ss…

nils

Has anyone got any examples of how to use a custom nested query using ListQueryScaffolder? I keep getting this:

  1. "SilverStripe\\GraphQL\\Scaffolding\\Scaffolders\\OperationScaffolder resolver must be a closure or implement SilverStripe\\GraphQL\\OperationResolver"
unclecheese

Might have some time to debug this today. Can you share your code?

nils

Need to check if I got it stashed, ended up doing something else in the end

MichalKleiner

well, a string, as you can either pass a URL of the file or stringified (e.g. base64 encoded) file content

unclecheese

@Anthony van Beek There's a file type provided for you. See graphql/_config/assets.yml

👍 (1)
MichalKleiner

nice, didn’t know about that.. it exposes a bit more than the URL but it’s still a bunch of strings 😄