Skip to main content
Solved

GQL Schema

  • December 6, 2021
  • 5 replies
  • 241 views

alexander-razumeiko

Hi, i am using GQL to build some processes and i’d like to try `gql dsl`, for this i need a graphQL schema. I tried to generate it automatically but i was not able to do it. So my questions: is it publicly available? If yes, where i can get it?

Best answer by genietim

Did you also find this API already: https://api-docs.pipefy.com/reference/queries/

 

View original
Did this topic help you find an answer to your question?

5 replies

Lucas Democh
Forum|alt.badge.img+15
  • Pipefy Legend
  • 396 replies
  • December 6, 2021

You can use the IDE provided by Pipefy: https://app.pipefy.com/graphiql.


genietim
Forum|alt.badge.img+12
  • Pipefy Legend
  • 412 replies
  • Answer
  • December 7, 2021

Did you also find this API already: https://api-docs.pipefy.com/reference/queries/

 


alexander-razumeiko

IDE fro what? It’s not providing the schema

How API tool will help me? How i will provide schema from both answers to GQL DSL?

 

This is schema https://gist.github.com/raphaelcosta/e6ffa87dcabba16f5de93a124783b692  but this is someone generated/build it, i was trying to find official schema, Looks like there is no official schema.


genietim
Forum|alt.badge.img+12
  • Pipefy Legend
  • 412 replies
  • December 8, 2021

You can use an introspection query to get a programmatic access on the fields etc. of the API, e.g. in Javascript:

await fetch("https://app.pipefy.com/graphql", {
    "credentials": "include",
    "headers": {
        "User-Agent": "Any",
        "Accept": "*/*",
        "Accept-Language": "de,en-US;q=0.7,en;q=0.3",
        "Content-Type": "application/json",
        "Sec-Fetch-Dest": "empty",
        "Sec-Fetch-Mode": "cors",
        "Sec-Fetch-Site": "same-origin"
    },
    "referrer": "https://app.pipefy.com/",
    "body": "{\"query\":\"\\n  query IntrospectionQuery {\\n    __schema {\\n      queryType { name }\\n      mutationType { name }\\n      subscriptionType { name }\\n      types {\\n        ...FullType\\n      }\\n      directives {\\n        name\\n        description\\n        locations\\n        args {\\n          ...InputValue\\n        }\\n      }\\n    }\\n  }\\n\\n  fragment FullType on __Type {\\n    kind\\n    name\\n    description\\n    fields(includeDeprecated: true) {\\n      name\\n      description\\n      args {\\n        ...InputValue\\n      }\\n      type {\\n        ...TypeRef\\n      }\\n      isDeprecated\\n      deprecationReason\\n    }\\n    inputFields {\\n      ...InputValue\\n    }\\n    interfaces {\\n      ...TypeRef\\n    }\\n    enumValues(includeDeprecated: true) {\\n      name\\n      description\\n      isDeprecated\\n      deprecationReason\\n    }\\n    possibleTypes {\\n      ...TypeRef\\n    }\\n  }\\n\\n  fragment InputValue on __InputValue {\\n    name\\n    description\\n    type { ...TypeRef }\\n    defaultValue\\n  }\\n\\n  fragment TypeRef on __Type {\\n    kind\\n    name\\n    ofType {\\n      kind\\n      name\\n      ofType {\\n        kind\\n        name\\n        ofType {\\n          kind\\n          name\\n          ofType {\\n            kind\\n            name\\n            ofType {\\n              kind\\n              name\\n              ofType {\\n                kind\\n                name\\n                ofType {\\n                  kind\\n                  name\\n                }\\n              }\\n            }\\n          }\\n        }\\n      }\\n    }\\n  }\\n\"}",
    "method": "POST",
    "mode": "cors"
});

 


arothberg-fa
  • New Member
  • 1 reply
  • September 19, 2022

I had success using `get-graphql-schema`:

npx get-graphql-schema -h "authorization=Bearer <API-KEY>" -h "referer=https://developers.pipefy.com/" https://api.pipefy.com/graphql


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings