-
Hello, I get the following error message when booting the application:
What am I doing wrong? I use the latest version of DGS (currently v4.5.0) and I have added the following dependency to my POM... : <dependency>
<groupId>com.netflix.graphql.dgs</groupId>
<artifactId>graphql-dgs-pagination</artifactId>
<scope>compile</scope>
</dependency> ... and used the following simple schema file: type Query {
shows(titleFilter: String): [Show]
withPagination: ShowConnection
}
type Show @connection {
title: String
releaseYear: Int
} When I modify the schema file as follows, the application starts and works as expected: type Query {
shows(titleFilter: String): [Show]
}
type Show {
title: String
releaseYear: Int
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Add
at the top of your schema, the directive doesn't automatically get loaded (i don't know why, maybe a Netflix employee can mention it). |
Beta Was this translation helpful? Give feedback.
-
Yes, you will need to add the directive if you plan to use it. We will
update documentation to reflect this.
…On Mon, Aug 2, 2021 at 7:32 AM Jordie ***@***.***> wrote:
Add
directive @connection on OBJECT
at the top of your schema, the directive doesn't automatically get loaded
(i don't know why, maybe a Netflix employee can mention it).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#507 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ5JPXLPEVA3WWD7MCUVDGTT22T7NANCNFSM5BMUUHWQ>
.
|
Beta Was this translation helpful? Give feedback.
Add
at the top of your schema, the directive doesn't automatically get loaded (i don't know why, maybe a Netflix employee can mention it).