1.1.16 • Published 11 months ago

graphiql-codegen v1.1.16

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

GraphiQL-Codegen

A graphical, interactive in-browser GraphQL IDE for code generation.

User Guide

  1. Run the Application:

    npx run graphiql-codegen
    
    This starts the localhost at port 3241 and the backend at port 4321.
  2. Enter the cURL: In the modal that opens up, paste the cURL.

Features

  1. Create Queries and Mutations: Easily create queries and mutations by clicking on the schema fields.

    Using endpoint https://graphql.api.apollographql.com/api/graphql for demonstration purposes.

    View All Mutations: Select mutation and then click the + button to see all mutations.

  2. Generate Response: Click on the Execute Query button to get the response for the created query/mutation.

  3. Generate Code for Query/Mutation: Generate code at the desired location by clicking Code Generator button, creating the following folders:

    • use(query/mutation)Name.ts: Generating useQuery and useMutation hooks.
    • types.ts: Generating TypeScript types for different operations.
    • (query/mutation).ts: Storing the created query or mutation.
    • index.ts: Exporting everything from a single file.

  4. Paste cURL:Click on the Paste cURL, to test your query and refetch a new schema.

  5. Add Variables and Headers: You can add variables and headers for your queries.

  6. Change Arguments to Variables: Click on the dollar sign beside fields to change arguments to variables.

1.1.16

11 months ago

1.1.15

12 months ago

1.1.13

12 months ago

1.1.12

12 months ago

1.1.11

12 months ago

1.1.10

12 months ago

1.1.9

12 months ago

1.1.8

12 months ago

1.1.7

12 months ago

1.1.6

12 months ago

1.1.5

12 months ago

1.1.4

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago

0.1.23

12 months ago

0.1.22

12 months ago

0.1.21

12 months ago

0.1.20

12 months ago

0.1.19

12 months ago

0.1.18

12 months ago

0.1.17

12 months ago

0.1.16

12 months ago

0.1.15

12 months ago

0.1.14

12 months ago

0.1.13

12 months ago

0.1.12

12 months ago

0.1.11

12 months ago

0.1.10

12 months ago

0.1.9

12 months ago

0.1.8

12 months ago

0.1.7

12 months ago

0.1.6

12 months ago

0.1.5

12 months ago

0.1.4

12 months ago

0.1.3

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago