Skip to content

Getting error on setting up: Cannot read property 'name' of undefined #43

@rohit12sh

Description

@rohit12sh

npx dociql -d gql-doc.yml

Error: Cannot read property 'name' of undefined

gql-doc.yml content:

# To fetch schema from
introspection: http://127.0.0.1:4000/graphql

# servers: # same format as for OpenAPI Specification
#   - url: https://dev-server.com
#     description: Dev
#   - url: https://prod-server.com
#     description: Prod
#     ...

info: # same format as for OpenAPI Specification
  title: Your API Title
  description: Markdown enabled description of your api.

  # define your domains by providing a set of usecases
domains:
  - name: Top Level Menu Section # Name of the domain
    description: Description # Description of the domain
    usecases:
      - name: Fetch 'Some' field # Operation name
        description: Markdown enabled description for operation # Opearation description
        query: query.some # Query example - fetching single field
        select: field1 field2 # select only specific sub fields. By default - all are selected
        expand: field3(sub1, sub2, sub3),field4 # go deep by expanding specific fields.
      - name: Invoke Mutation # Mutation
        description: Markdown enabled description for operation
        query: mutation.mutateSome # Mutation example - invoke mutation

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