rare-sapphire
rare-sapphire2y ago

staff_documents field not found error

formProps.onFinish({ // ...values, blood_group: "s", is_doctor: true, date_of_birth: "2022-12-29", mobile: "8", joining_date: "2022-12-29", last_name: "sss", first_name: "s", email: "sss", nationality: "inf", years_of_experience: "4", staff_documents: { document_url: "sssss", document_no: "sssss", document_type: "sssss", },
})
2 Replies
rare-sapphire
rare-sapphire2y ago
i am not able to post data of staffs_documents thats is document_url and others field 'document_type' not found in type: 'staff_documents_arr_rel_insert_input': {"response":{"errors":[{"extensions":{"code":"validation-failed","path":"$.selectionSet.insert_staffs_one.args.object.staff_documents.document_type"},"message":"field 'document_type' not found in type: 'staff_documents_arr_rel_insert_input'"}],"status":200,"headers":{"map":{"content-type":"application/json; charset=utf-8"}}},"request":{"query":"mutation ($object: staffs_insert_input!) {\n insert_staffs_one (object: $object) but document_type field is present in the staff_documents table can anyone help me with this? ?
Omer
Omer2y ago
Hey @rehan1 , This question doesn't seem to be about Refine. Please make sure that the questions you ask are not related to your project. Thank you for your understanding