You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call `policy` within your class definition or pass the `policy:` option to your field definition:
310
+
311
+
```ruby
312
+
classProduct < BaseObject
313
+
policy policies: [["stock:read"]]
314
+
field :id, ID, null:false
315
+
field :inStock, Boolean, null:false, policy: { policies: [["stock:read"]] }
316
+
end
317
+
```
318
+
305
319
### Field set syntax
306
320
307
321
Field sets can be either strings encoded with the Apollo Field Set [syntax]((https://www.apollographql.com/docs/apollo-server/federation/federation-spec/#scalar-_fieldset)) or arrays, hashes and snake case symbols that follow the graphql-ruby conventions:
0 commit comments