deep-foundation / deeplinks

https://discord.gg/deep-foundation
The Unlicense
14 stars 9 forks source link

Move createSerialOperation to client from gql #304

Closed FreePhoenix888 closed 9 months ago

FreePhoenix888 commented 9 months ago

I do not thing createSerialOperation should be in gql folder: https://github.com/deep-foundation/deeplinks/blob/628bc6ab8ab9e9337da253c7aec40150d4e82510/imports/gql/serial.ts#L54-L62 It is used only to enhance strong-typings when using serial. For some reasons serial is unable to provide strong-typings and we should use this until we find another way Here are proofs: Shows only fields you should use with insert operation: image Shows all fields, even those you should not use with insert operation: image

FreePhoenix888 commented 9 months ago

Maybe for backwards compability we should just reexport it from client?