tags{ weight carouselItems{ mediaUrl photos @include(if: $fetchPhotos){ }} 在我第一次尝试在服务器端实现时,我将它添加到了模式中: type Album @include{} 我收到验证错误: Error: Directive "@include" may not be us
在架构中的directives.graphql文件中定义了自定义指令:还在我的.graphql类中传递了GraphQLConfig.java文件:
private static final String[] SCHEMA_FILES = new String[]{"schema/root.graphql","schema/directives.graphql","schema