Replies: 4 comments 1 reply
-
Hi, Please add a reproduction or a bit more than just "strange issue". I haven't seen anything like it so far. From the top of my head, however, I think this might stem from you not "allowing" the union type or one of the types it consists of. I can probably help you better if you post permissions object. |
Beta Was this translation helpful? Give feedback.
-
Apologies on the vagueness ...
type BookType { type MovieType { type RootQueryType { union SearchableType = MovieType | BookType
|
Beta Was this translation helpful? Give feedback.
-
The unionTest query is hard coded to return This is what I'm seeing: query test { { |
Beta Was this translation helpful? Give feedback.
-
@maticzav we figured it out on our end. The following code snippet will produce expected results now. I changed the return value in resolveType to a string of the class name rather than the value MovieType or BookType. One thing to note though, either return values for resolveType work if I do not applyMiddleware() the schema. ` const BookType = new GraphQLObjectType({ const DATA = [{ director: 'catherine hardwicke' }, { author: 'catherine cookson' }]; const SearchableType = new GraphQLUnionType({ |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm seeing a strange issue where all data in my Union types is removed from the response when I used a shield. Even if the query isn't part of any rule.
Have you seen anything like this?
Beta Was this translation helpful? Give feedback.
All reactions