Could you please help me in adding the reverse edge for the attributes userlist.userSkills and skills.belongsTo ?
As of now, I’m using curl to load this schema and through the Ratel UI, I’m manually adding the reverse edge for the predicates.
I tried adding the @reverse in the schema file but I’m getting this error while loading it using CURL,
{“errors”:[{“message”:“resolving updateGQLSchema failed because input:3: Undefined directive reverse.\n (Locations: [{Line: 3, Column: 4}])”,“extensions”:{“code”:“Error”}}]}
However, when I use @hasinverse directive, I’m getting this error.
{“errors”:[{“message”:“resolving updateGQLSchema failed because input:21: Type skills; Field skillPublicId: Field skillPublicId is of type String, but @hasInverse directive only applies to fields with object types.\n (Locations: [{Line: 3, Column: 4}])”,“extensions”:{“code”:“Error”}}]}
Hi Vibin,
It looks like you are trying to set a hasInverse on a String field. This directive can only be applied on Object types like an Author or a Post. Please review the example I had shared. If you still face issues, please share the schema you are trying to use.