Add custom field relation(new entity/gql type in plugin) in orderLine #1538
Unanswered
lucasrochaa
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a customField relation with a entity of my ReceiptPlugin
vendure-config.ts
`OrderLine: [
{name: 'receipt', type: 'relation', public: true, entity: Receipt, graphQLType: 'Receipt', eager: false,},
],
receipt-plugin.ts
type Receipt implements Node { id: ID! numDocumento: String! idTransacao: String! dataPgtoEfetuado: DateTime! valorNominal: Int! valorTarifa: Int! valorTotal: Int! protocolo: String! nomePagador: String! cpf: String! }
when i start the server i get:
Error: The GraphQL type "Receipt" specified by the OrderLine.receipt custom field does not exist
and in the database, i've got :
customFields__fix_relational_custom_fields__ (new column in order_line) and have a description:
A work-around needed when only relational custom fields are defined on an entity
What i'am missing?
thanx!
Beta Was this translation helpful? Give feedback.
All reactions