Skip to content

When generating output a schema property is being ignored/skipped #1970

Closed
@gablabelle

Description

@gablabelle

Describe the bug

When generating output a property is being ignored/skipped. I'm pretty new to yaml files, I just hope I'm doing some silly mistake and forgetting something. ;-)

To Reproduce
Steps to reproduce the behavior:

Checkout the generate-bug-type-property branch of the following repo: https://github.com/gablabelle/next-mesh-apollo-monorepo-example/tree/generate-bug-type-property

Run yarn and cd packages/graphql-server

You can now take a look to the test.yaml where v5_approvalRequest_approvalRequestSummaryGet contains the type and type2 fields pointing to the same ref.

Screen Shot 2021-04-16 at 11 35 49

Run yarn mesh:generate:typings to generate output ts file.

See the missing type field from V5ApprovalRequestApprovalRequestGet but type2 is present.

Screen Shot 2021-04-16 at 11 17 32

N/A
Expected behavior

Both type and type2 fields should be present in the output

Environment:

  • OS: Mac Big Sur

  • @graphql-mesh/...:
    Screen Shot 2021-04-16 at 11 44 37

  • NodeJS: v14.15.4

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions