question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is codegen.json used for?

See original GitHub issue

Amazing repo, documentation is a bit thin though 😃 I was wondering what is codegen.json for? I ran yarn generate but got an error around authentication. On a closer look into codegen.json, it doesn’t look like those credentials are actually being used?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
whatisaghostwritercommented, Mar 23, 2021

Within codegen.json you have to replace the default config with your own websites auth and graphql api. “schema”: { “https://{STORE-ID}.mybigcommerce.com/graphql”: { “headers”: { “Authorization”: “Bearer {API-KEY}” } } From my understanding it generates the output schema.d.ts, schema.graphql files. I don’t have in depth knowledge, but graphql provides a lot of benefits it just things like this that set you back. We have to understand this tool and its plugins in brevity because it shouldnt be this demanding to pull data. https://github.com/dotansimha/graphql-code-generator#readme

0reactions
cond0rcommented, Jun 2, 2021

@FBosler if you clone master now, you can run yarn generate:shopify and it will generate definitions & schema

Read more comments on GitHub >

github_iconTop Results From Across the Web

jtd-codegen: Generate code from JSON Typedef schemas
JSON Type Definition, aka RFC8927, is an easy-to-learn, standardized way to define a schema for JSON data. You can use JSON Typedef to...
Read more >
Generating Code from JSON Typedef Schemas with jtd-codegen
jtd-codegen is a tool that can generate types (clases, interfaces, structs, etc.) in many programming languages from a JSON Typedef schema. It lives...
Read more >
json::codegen - Rust - Docs.rs
Writer Generator, this uses a custom writer to store the JSON result. Traits. Generator. Default trait for serializing JSONValue into string.
Read more >
Code generation design - Ajv JSON schema validator
CodeGen module defines two tagged templates that should be passed to all code generation methods and used in other tagged templates:.
Read more >
Using Codegen - Windows Community Toolkit - Microsoft Learn
To generate a C# or C++ file from JSON use the LottieGen command-line tool. ... For additional information about additional options including ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found