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.

How does the --export flag work?

See original GitHub issue

I cannot find docs about exactly how to use it.

I tried with a file that exports a schema like this:

schema.ts

import gql from "graphql-tag";

export const schema = gql`
  type User {
    id: ID!
    first_name: String!
    last_name: String!
  }
`

And I run this:

gql-gen --export schema.js --template typescript --out ./types.ts ./src/**/*.ts

And I get this error:

Loading GraphQL Introspection from JavaScript ES6 export: schema.js...
TypeError: schema.getTypeMap is not a function

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
dotansimhacommented, Mar 13, 2018

@GD-Aichi soon 😃 @jonaskello please read my latest comment in the PR.

0reactions
GD-Aichicommented, Mar 5, 2018

Is this review finish?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Red Flag Indicators - BIS.doc.gov
Red Flag Indicators. Print. Things to Look for in Export Transactions. Use this as a checklist to discover possible violations ...
Read more >
No Bull: Export Compliance Means Watching for Red Flags
Red flags are defined by the Export Administration Regulations (EAR) as “any abnormal circumstances in a transaction that indicate that the export may...
Read more >
U.S. Flag Shipping Requirements - EXIM.GOV
Shipping on U.S. flag vessels is required for the following EXIM export credit transactions: Direct loans regardless of term or amount,; Guarantees and...
Read more >
Data Export - LaunchDarkly docs
This topic explains how to use LaunchDarkly's Data Export feature to export and store flag, user, and Experimentation event data. Data Export ......
Read more >
Add Import/Export Flags option - Microsoft Community Hub
you can use the file by copying it to multiple machines to apply the same flags to all of them. it can be...
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