We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schema add
Status quo: only the last file added via -f is considered
-f
The text was updated successfully, but these errors were encountered:
example test code
func TestAddSchemaWithMultipleFiles(t *testing.T) { conf := NewDefraNodeDefaultConfig(t) stopDefra := runDefraNode(t, conf) fname1 := schemaFileFixture(t, "schema1.graphql", `type Post { id: ID title: String }`) fname2 := schemaFileFixture(t, "schema2.graphql", `type User { id: ID name: String }`) stdout, _ := runDefraCommand(t, conf, []string{"client", "schema", "add", "-f", fname1, "-f", fname2}) nodeLog := stopDefra() assertContainsSubstring(t, stdout, `{"data":{"result":"success"}}`) assertNotContainsSubstring(t, nodeLog, "ERROR") stdout, _ = runDefraCommand(t, conf, []string{"client", "query", `query IntrospectionQuery { __schema { types { name } } }`}) assertContainsSubstring(t, stdout, `{"name":"Post"}`) assertContainsSubstring(t, stdout, `{"name":"User"}`) } */ /* disabled because current implementation doesn't support this currently func TestAddSchemaWithMultipleFilesWithIntertwinedSchemas(t *testing.T) { conf := NewDefraNodeDefaultConfig(t) stopDefra := runDefraNode(t, conf) fname1 := schemaFileFixture(t, "schema1.graphql", `type Post { id: ID title: String }`) fname2 := schemaFileFixture(t, "schema2.graphql", `type User { id: ID posts: [Post] }`) stdout, _ := runDefraCommand(t, conf, []string{"client", "schema", "add", "-f", fname1, "-f", fname2}) nodeLog := stopDefra() assertContainsSubstring(t, stdout, `{"data":{"result":"success"}}`) assertNotContainsSubstring(t, nodeLog, "ERROR") stdout, _ = runDefraCommand(t, conf, []string{"client", "query", `query IntrospectionQuery { __schema { types { name } } }`}) assertContainsSubstring(t, stdout, `{"name":"Post"}`) assertContainsSubstring(t, stdout, `{"name":"User"}`) } */
Sorry, something went wrong.
3779cbb
ChrisBQu
Successfully merging a pull request may close this issue.
Status quo: only the last file added via
-f
is consideredThe text was updated successfully, but these errors were encountered: