Answer the question
In order to leave comments, you need to log in
Error: Field "My.x" already exists in the schema?
it can schema
index.js
import { gql } from "apollo-server-express";
import My from "./My";
const linkSchema = gql`
type Query {
my: My
}
type My {
_: Boolean
}
`;
export default [linkSchema, My];
import { gql } from "apollo-server-express";
export default gql`
extend type My {
x: Int
}
`;
"dependencies": {
"apollo-server": "^2.14.4",
"apollo-server-express": "^2.14.4",
"express": "^4.17.1",
"graphql": "^15.1.0",
}
Error: Field "My.x" already exists in the schema. It cannot also be defined in this type extension
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question