Skip to content

Error: Interface field List.nodes expects type [Node!]! but Users.nodes is type [User!]!. #23

Description

@lordnox

Error using interfaces

constpaginate=<Type>(data: Type[]): Paged<Type>=>({nodes: data,page: {limit: data.length,offset: 0,},})constanyService=({create: async()=>null,update: async()=>null,remove: async()=>null,findOne: async()=>null,findMany: async()=>paginate([]),})constinterfaceService=({findOne: async()=>null,findMany: async()=>paginate([]),})exportconstbuilder=createSchemaBuilder()consttouchpoint=builder.model('Touchpoint',wrapModel(Touchpoints))touchpoint.attr('name',GraphQLString)constuser=builder.interface('User',interfaceService)user.attr('email',GraphQLString)constapiKeys=builder.model('ApiKey')apiKeys.attr('publicKey',GraphQLString)apiKeys.attr('privateKey',GraphQLString)constdeveloper=builder.model('Developer',anyService).interface('User')developer.attr('apiKeys',apiKeys)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions