Replies: 2 comments 3 replies
-
Like in Laravel, the |
Beta Was this translation helpful? Give feedback.
0 replies
-
What's returned from the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using Statamic headless so not using antlers and am implementing some custom endpoints. I'm having trouble figuring out the correct way to harness augmentation in my controller. Here's a basic
get
I wrote:I'm a little blind here as the docs don't really cover any of the details, for example it's not obvious to me what is even returned by
query->get()
but I've tried to call theshallow
version of Augmentables and get an undefined error. Ideally I'd be able to define what fields and nested fields get included/evaluated in the response on a per collection basis.P.S. I know what I'm asking for is solvable with GraphQL, but for a number of reasons that's not really an option here.
Beta Was this translation helpful? Give feedback.
All reactions