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
It seems like arguments of mutations that use loads to automatically load the types from the database don't get loaded unless they are nested in another type. With queries I have not experienced any issues.
This query works fine. The facility entity is present in args[facility] in the GuardPolicy. args is a hash.
field:facility,Types::Facility::FacilityType,'Returns a certain Facility',null: false,authenticate: falsedoargument:facility_id,GraphQL::Types::ID,required: true,loads: Types::Facility::FacilityTypeargument:locale,String,required: trueenddeffacility(facility:,locale:)facilityend
This mutation does not work. There is a args[exhibitor] key ('_id' is stripped) but it contains the bare exhibitor_id. In comparison to the query, args is of type class.
classAssociatedWithExhibitionCreateInput < BaseCreateInputdescription'Attributes for create action of entities associated with exhibition'argument:exhibition_id,ID,required: true,loads: Exhibition::ExhibitionTypeend
The text was updated successfully, but these errors were encountered:
Apparent bug
It seems like arguments of mutations that use
loads
to automatically load the types from the database don't get loaded unless they are nested in another type. With queries I have not experienced any issues.Environment
rails:
6.0.3
graphql_ruby:
1.11.6
graphql_guard:
2.0
Description
This query works fine. The facility entity is present in
args[facility]
in the GuardPolicy.args
is a hash.This mutation does not work. There is a
args[exhibitor]
key ('_id' is stripped) but it contains the bareexhibitor_id
. In comparison to the query,args
is of type class.This mutation does work. It contains the loaded argument in a 'nested' type. The
exhibition
entity is available inargs[:data][:exhibition]
:The text was updated successfully, but these errors were encountered: