-
-
Notifications
You must be signed in to change notification settings - Fork 831
Closed
Labels
has-reproduction❤ Has a reproduction in a codesandbox or single minimal repository❤ Has a reproduction in a codesandbox or single minimal repository
Description
- has-reproduction
- feature
- docs
- blocking
- good first issue
define type by
type Item {
name: String
}
then makeExectuableSchema out of it.
define another type
extend type Item {
cost: Float
}
type Query: {
findItemCostMoreThan(giveCost: Float): [Item]
}
them mergeSchemas of both. Now it complain that it doesn't know Float.
workaround is to split second definition into extend and query then call mergeSchemas twice.
First with extend type definition. Second with Query.
Based on some of my investigation, mergeSchemas seem to detect type out of compile schema but not on string based schema. So split mergeSchemas into two phrase can workaround this.
nitzano
Metadata
Metadata
Assignees
Labels
has-reproduction❤ Has a reproduction in a codesandbox or single minimal repository❤ Has a reproduction in a codesandbox or single minimal repository