Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Missing custom types properties in suggested model types. #448

@otrebu

Description

@otrebu

My schema.graphql contains:

type Post {
    id: ID!
    title: String!
    content: String!
    comments: [Comment!]
    user: User!
}

When I generate the types the suggested type for Post is:

export interface Post {
    id: string;
    title: string;
    content: string;
    isAvailable: boolean;
}

I am not sure why comments and user are missing?

Steps to reproduce

Expected results

Actual results

Versions

  • graphqlgen:
  • OS name and version:

Metadata

Metadata

Assignees

No one assigned

    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