How to use the "always" attribute? #866
Replies: 1 comment 3 replies
-
I'll give it a try 🤞🏼 : When you decide to use But in GraphQL, you can have resolvers of
This is now the use case to add We've also some tests covering this, e.g.
I don't fully understand that part, what you tried. Specifically what means "related Type" in this context. Please check the tests, maybe it helps? |
Beta Was this translation helpful? Give feedback.
-
Laravel => 7
PHP => 7.2.34
rebing/graphql-laravel => 8.0
I'm looking for clarification on what the "always" attribute is for on Types. From reading the docs, I am led to believe that the fields in "always" are queried from the data source, but what I have tried hasn't worked so I'm not sure if I'm on the right track.
I'm attempting to use it as shown in the docs, with the only difference being that the fields in "always" are NOT fields defined in the GraphQL schema on the related Type.
I did also try to use "always" for fields defined on a related GraphQL Type, but didn't notice any difference.
Beta Was this translation helpful? Give feedback.
All reactions