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
String printSchema = new SchemaPrinter().print(runtimeGraph.getExecutableSchema());
System.out.println(printSchema);
produces the output
"Directs the executor to include this field or fragment only when the `if` argument is true"
directive @include(
"Included when true."
if: Boolean!
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
"Directs the executor to skip this field or fragment when the `if`'argument is true."
directive @skip(
"Skipped when true."
if: Boolean!
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
directive @provides(fields: String!) on FIELD_DEFINITION
"Exposes a URL that specifies the behaviour of this scalar."
directive @specifiedBy(
"The URL that specifies the behaviour of this scalar."
url: String!
) on SCALAR
directive @extends on OBJECT | INTERFACE
directive @deprecated(reason: String = "No longer supported") on FIELD_DEFINITION | ENUM_VALUE
directive @key(fields: _FieldSet) repeatable on OBJECT | INTERFACE
directive @requires(fields: _FieldSet!) on FIELD_DEFINITION
directive @include(if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
directive @skip(if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
directive @tag(name: String!) repeatable on SCALAR | OBJECT | FIELD_DEFINITION | ARGUMENT_DEFINITION | INTERFACE | UNION | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
directive @external on FIELD_DEFINITION
"[product]"
type Product {
inStock: Boolean
name: String
price: Int
reviews: [Review]
shippingEstimate: Int
upc: String!
weight: Int
}
"[]"
type Query {
_namespace: String
me: User
productB(upc: String!): Product
topProducts(first: Int = 5): [Product]
}
"[review]"
type Review @key(fields : "id") {
body: String
id: ID!
product: Product @resolver(arguments : [{name : "upc", value : "UPC001"}], field : "productB")
}
"[user]"
type User {
id: ID!
name: String
reviews: [Review]
username: String
}
"A selection set"
scalar _FieldSet
"[review]"
input ResolverArgument {
name: String!
value: String!
}
SchemaProblem{errors=['product' [@50:3] tried to use an undeclared directive 'resolver']}
SchemaProblem{errors=['include' type [@28:1] tried to redefine existing directive 'include' type [@1:1], 'skip' type [@30:1] tried to redefine existing directive 'skip' type [@6:1]]}
When I remove the duplicate entries for @include and @Skip and add the directive @resolver(field: String!, arguments: [ResolverArgument!]) on FIELD_DEFINITION
the validation is successful
Can you please let me know how this can be fixed.
I further want to know if this stitched graph can be considered and treated as a supergraph similar to the one in APOLLO Federation.
The text was updated successfully, but these errors were encountered:
RuntimeGraph is supposed to hold the executable schema for you. The expectation is you will use this part of the schema to execute the request and not reparse it. Why are you trying to parse the schema again after the runtime graph is constructed?
Describe the bug
When I use orchestrator and merge two subgraphs with Apollo Federation Directives as given below ,
The stitched Schema when output through
produces the output
When this is parsed
There are multiple issues that arise as below ,
SchemaProblem{errors=['product' [@50:3] tried to use an undeclared directive 'resolver']}
SchemaProblem{errors=['include' type [@28:1] tried to redefine existing directive 'include' type [@1:1], 'skip' type [@30:1] tried to redefine existing directive 'skip' type [@6:1]]}
When I remove the duplicate entries for @include and @Skip and add the
directive @resolver(field: String!, arguments: [ResolverArgument!]) on FIELD_DEFINITION
the validation is successful
Can you please let me know how this can be fixed.
I further want to know if this stitched graph can be considered and treated as a supergraph similar to the one in APOLLO Federation.
The text was updated successfully, but these errors were encountered: