Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore property types #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Ignore property types #28

wants to merge 2 commits into from

Commits on Jul 3, 2017

  1. Configuration menu
    Copy the full SHA
    e460bd0 View commit details
    Browse the repository at this point in the history
  2. Use of ignore-property-types

    You can now ignore properties that have specific types instead of the whole type.
    
    E.g. 
    schema
    ```
    type Role {
      name: String!
    }
    
    type User {
      email: String!,
      roles: [Role]!
    }
    ```
    
    gql2flow --ignore-property-types "Role"
    ```
    type User = {
      email: string
    }
    
    type Role = {
      name: string
    }
    ```
    
    gql2flow
    ```
    type User = {
      email: string,
      roles: Array<Role>
    }
    
    type Role = {
      name: string
    }
    ```
    
    The reason is that I needed these types to annotate my resolver functions in apollo.
    imaximix authored Jul 3, 2017
    Configuration menu
    Copy the full SHA
    de56c75 View commit details
    Browse the repository at this point in the history