-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
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
Missing directives (NestJS integration) #113
Comments
Hi @unlight Thanks for the bug report. The directives included in The errors you're seeing indicates a possible issue with the SDL type definitions for the directives. If you're not using
Can you share a more complete example of how you're creating your schema, including any imports? |
I'm using NestJS with schema first approach (I tried code first, but seems it's not yet supported). Main file looks like import { Module } from '@nestjs/common';
import { GraphQLModule } from '@nestjs/graphql';
import { schemaDirectives } from 'sqlmancer';
import { UserModule } from './user/user.module';
@Module({
imports: [
UserModule,
GraphQLModule.forRoot({
typePaths: [`${__dirname}/**/*.graphql`],
schemaDirectives: {
...schemaDirectives,
},
}),
],
})
export class AppModule {} So, there is no |
I'm not that familiar with NestJS, but I believe if you provide both
|
Thank you, that's worked.
|
@unlight As a temporary workaround, you can do
I can export the typeDefs as a string in the next release. |
It would also be worthwhile to document NestJS integration alongside any other commonly-used libraries |
Following 'Getting Started' documentation, I'm getting error
Looks like it's not all from https://sqlmancer.netlify.app/directives
At least
model
,sqlmancer
are missing.sqlmancer@0.3.3
The text was updated successfully, but these errors were encountered: