Skip to content

operationName is undefined on Graphql queries #12545

Open
@arashgm

Description

Is there an existing issue for this?

  • I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

When i run a graphql query the operation name is undefined and i could not find a way to set it or replace it on Pre-request script

Steps To Reproduce

i am logging out pm.request.body in console and i see below detail :

{mode: "graphql", graphql: {…}}
mode: "graphql"
graphql: {…}
query: "query xxx() {
  xxx() {
    field
}"
operationName: undefined
variables: "{
...
}"

Screenshots or Videos

No response

Operating System

macOS

Postman Version

10.20.10

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions