The Wayback Machine - https://web.archive.org/web/20220708195433/https://github.com/topics/codegen
Skip to content
#

codegen

Here are 569 public repositories matching this topic...

rogpeppe
rogpeppe commented May 25, 2019

One of the specific advantages of the wire approach is that it generates code that's relatively readable compared to reflect-based equivalents. When wire.Value is used on a small by-value type, there's no need for the value to live in a global variable - the expression could instead be used literally inside the generated code, which would make the code easier to follow, and more similar to the c

enhancement good first issue
AndrewWPhillips
AndrewWPhillips commented Aug 30, 2021

What happened?

Stepping through the code and it seems that the same OperationContext is added twice to the active context.Context. This happens just before the call to exec.DispatchOperation at:
https://github.com/99designs/gqlgen/blob/master/graphql/handler/transport/http_post.go#L51

then at the top of exec.DispathcOperation at:
https://github.com/99designs/gqlgen/blob/master/graphql

good first issue
genqlient
benjaminjkraft
benjaminjkraft commented Nov 2, 2021

(Split from #149.)

If you have in your schema

input T {
  f: T  # or `f: T!`
}

then genqlient by default generates

struct T {
  F T
}

which does not compile. Of course you can manually add pointer: true, but we could just do that automatically because it's the only valid way to represent this. Apparently this comes up a lot with Hasura-generated schemas,

enhancement good first issue help wanted
derberg
derberg commented Feb 10, 2021

Reason/Context

The problem is described here asyncapi-archived-repos/playground#79. It must be clear that returned data is not content but an object with content and metadata + what is this metadata, and that it is only with React renderer.

Description

Probably JSDoc must be only updated. Of course, some additional section in the readme would be also welcomed 😄

enhancement good first issue
sideeffffect
sideeffffect commented Oct 4, 2021

With a file

---
description: 400 - The request was malformed or missing a required field.
content:
  application/json:
    schema: { $ref: '#definitions/BadRequestResponse' }

definitions:
  BadRequestResponse:
    description: Optional information about how the request was bad.
    type: object
    properties:
      fieldName:
        description: >-
          If this error
bug help wanted good first issue core
Graphaello
seanaguinaga
seanaguinaga commented Jan 6, 2022

Hello

Based on the example I see you can get a token from localStorage:

https://gqty.dev/examples/suspense/auth

However, I don't keep tokens in local storage.

Do you have an example using a firebase token or anything like that or a JWT?

https://github.com/gladly-team/next-firebase-auth

I use this specifically

documentation enhancement good first issue

Improve this page

Add a description, image, and links to the codegen topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the codegen topic, visit your repo's landing page and select "manage topics."

Learn more