Comments (4)
@martijnwalraven just checked and not sure that the fix works:
So I have next custom scalar type in my schema:
{
"kind": "SCALAR",
"name": "DateTime",
"description": null,
"fields": null,
"inputFields": null,
"interfaces": null,
"enumValues": null,
"possibleTypes": null
}
Product type:
"kind": "OBJECT",
"name": "Product",
"description": null,
"fields": [
...
{
"name": "createdAt",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "DateTime",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
Query:
query ShopWithDate {
shop {
products(first:50) {
edges {
node {
title
createdAt
}
}
}
}
}
Generated IR.json
{
"operations": [
{
"operationName": "ShopWithDate",
"operationType": "query",
"variables": [],
"source": "query ShopWithDate {\n shop {\n products(first: 50) {\n edges {\n node {\n title\n createdAt\n }\n }\n }\n }\n}",
"fields": [
{
"responseName": "shop",
"fieldName": "shop",
"type": "Shop!",
"fields": [
{
"responseName": "products",
"fieldName": "products",
"type": "ProductConnection!",
"fields": [
{
"responseName": "edges",
"fieldName": "edges",
"type": "[ProductEdge!]!",
"fields": [
{
"responseName": "node",
"fieldName": "node",
"type": "Product!",
"fields": [
{
"responseName": "title",
"fieldName": "title",
"type": "String!"
},
{
"responseName": "createdAt",
"fieldName": "createdAt",
"type": "DateTime!"
}
],
"fragmentSpreads": [],
"inlineFragments": []
}
],
"fragmentSpreads": [],
"inlineFragments": []
}
],
"fragmentSpreads": [],
"inlineFragments": []
}
],
"fragmentSpreads": [],
"inlineFragments": []
}
],
"fragmentsReferenced": []
}
],
"fragments": [],
"typesUsed": []
}
"typesUsed": [] - is empty
from apollo-tooling.
Are you sure you are running the latest version of apollo-codegen
?
from apollo-tooling.
will check again, with npm I'm not sure about anything :)
from apollo-tooling.
yes it works fine
from apollo-tooling.
Related Issues (20)
- apollo-language-server: Include graphql as a peer dependency
- Code Generation In Mono Repo With Multiple Graphql APIs
- 2.34.0: Cannot find module 'graphql/validation/rules/UniqueTypeNames' when generating code from a graph introspection
- Cannot install Apollo on Node 18 HOT 4
- client:codegen fails on windows with Error: No operations or fragments found to generate code for
- [Question]:
- How can I deliberately fail a mutation for testing purposes?
- Error: Cannot use GraphQLNonNull "String!" from another module or realm. HOT 3
- [apollo-language-server] - unpin @apollo/federation HOT 6
- Bump vulnerable version of moment
- apollo client:check doen't find GraphQl Queries in gql('..') from graphql-codegen HOT 2
- Apollo GraphQL VSCode extension: Prevent GraphQL Validation
- TS + Vite + Vue: ❌ Service stats could not be loaded
- Make apollo.config.js support `esm` project `type:module`
- Setting up Intellisense for with localSchemaFile is broken HOT 1
- Missing `includeDeprecatedInputValues` for `apollo client:download-schema`
- how to use apollo.config.js with Vite React app HOT 1
- Cover auth failure case before `It looks like there are 0 files associated with this Apollo Project.`
- Server not Start
- During codegen of an input type with a default value, allow for null to be sent from client, rather than defaulting in the generated class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-tooling.