Forum Discussion

jeperry's avatar
jeperry
Occasional Visitor
7 months ago

GraphQL InvalidSyntaxError when importing schema with "extend" keyword

I'm using ReadyAPI 3.47.0 and I get an InvalidSyntaxError when I try to import a .graphql file that uses the "extend" keyword to bring additional directives like so:

 

extend schema
  @link(
    import: ["@inaccessible"]
  ) {
  query: Query
  mutation: Mutation
}
 
The full error is :
errors=[InvalidSyntaxError{ message=Invalid Syntax : offending token 'extend' at line 1 column 1 ,offendingToken=extend ,locations=[SourceLocation{line=1, column=1}] ,sourcePreview=extend schema @link( url: "https://specs.apollo.dev/federation/v2.3" import: ["@inaccessible"] }]
 
 
Is this convention supported in ReadyAPI?