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

language: change OperationTypeNode to enum #3312

Merged
merged 2 commits into from Oct 13, 2021

Commits on Oct 13, 2021

  1. fix: change OperationTypeNode to enum

    Changes OperationTypeNode to enum instead of a union type.
    This allows developers to use the type as `OperationTypeNode.QUERY`
    instead of risking to msispell the string 'query'.
    
    Example:
    
    Instead of having to write
    
    `operation === 'query'`
    
    you can instead write
    
    `operation === OperationTypeNode.QUERY`
    lekoaf committed Oct 13, 2021
    Copy the full SHA
    c726830 View commit details
    Browse the repository at this point in the history
  2. review fixes

    IvanGoncharov committed Oct 13, 2021
    Copy the full SHA
    ddd063b View commit details
    Browse the repository at this point in the history