Skip to main content

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?

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


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

 


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.


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"
});

 


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


Reply