Closed quen2404 closed 6 years ago
With the latest release @kamilmysliwiec add a test-schema.graphql to the graphql module.
type Query {
getCats: [Cat]
cat(id: ID!): Cat
}
type Mutation {
createCat(cat: CreateCatInput): Cat
}
input CreateCatInput {
name: Date
}
scalar Date
type Subscription {
catCreated: Cat
}
type Cat implements ICat {
id: Int
name: String
age: Int
}
interface ICat {
id: Int
name: String
}
interface Character {
id: ID!
name: String!
}
enum Episode {
NEWHOPE
EMPIRE
JEDI
}
type Human implements Character {
id: ID!
name: String!
totalCredits: Int
}
type Droid implements Character {
id: ID!
name: String!
primaryFunction: String
}
union SearchResult = Droid | Human
To get rid off this warnings you could specify the typePaths to
GraphQLModule.forRoot({
typePaths: ['./src/**/*.graphql']
})
Unbelievable! Just pushed 5.2.2 fix. Thanks for reporting :)
Ahaha no problem @kamilmysliwiec ! Thank you for your reactivity and for this amazing project 💯
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I'm submitting a...
Current behavior
I defined a scalar of type Date in my graphql schema.
But i have this error message at startup.
If i try to remove my scalar declaration, my nestjs application starts but gives me this message in the console:
This is weird because i have none of theses types defined in my schema. It looks like an example schema.
Expected behavior
I have this behavior since i upgrade
@nestjs/graphl
from version5.2.0
to5.2.1
.Environment