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.

Cursor, Datetime, Node missing?

See original GitHub issue

Sorry this may not be a bug… are these supposed to be there? they don’t seem like “custom” types

Caused by: graphql.schema.idl.errors.SchemaProblem: errors=[There is no scalar implementation for the named  'Cursor' scalar type, There is no scalar implementation for the named  'Datetime' scalar type, There is no type resolver defined for interface / union 'Node' type]
	at graphql.schema.idl.SchemaGenerator.makeExecutableSchema(SchemaGenerator.java:270) ~[graphql-java-10.0.jar:na]
	at graphql.schema.idl.SchemaGenerator.makeExecutableSchema(SchemaGenerator.java:246) ~[graphql-java-10.0.jar:na]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
xenoterracidecommented, Oct 17, 2018

oh nvm, that exception is coming from apollo, still that documentation could be clearer… I presume this is the actual right way to do it.

    GraphQLSchema schema( @Value( "classpath:schema.graphqls" ) Reader schema ) {
        TypeDefinitionRegistry typeDefs = new SchemaParser().parse( schema );
        RuntimeWiring wiring
                = RuntimeWiring.newRuntimeWiring()
                .scalar( ExtendedScalars.newAliasedScalar( "Datetime" )
                        .aliasedScalar( ExtendedScalars.DateTime ).build() )
                .build();
        return new SchemaGenerator().makeExecutableSchema( typeDefs, wiring );
    }
0reactions
xenoterracidecommented, Oct 17, 2018

note, I don’t see that the documentation for either clearly explain how to add a value from the extended library, which is presumably different/simpler. Note the exception I mentioned above, doesn’t happen until runtime…

Read more comments on GitHub >

github_iconTop Results From Across the Web

MongoDB - Error: getMore command failed: Cursor not found
1. Reducing the batch size to keep the cursor alive · 2. Remove the timeout from the cursor · 3. Retry when the...
Read more >
Cursor and Offset Pagination Techniques with Hasura GraphQL
Missing / Duplicates. If data is frequently updated, there is a possibility for duplicate / missing items. Consider the following query: query { ......
Read more >
Node.js SQLite3 - w3resource
Node SQLite3 : This is a node.js driver for SQLite3. ... are not persisted and when closing the database handle, their contents are...
Read more >
Node.js v19.2.0 Documentation
In rare situations, the current store is lost in one of the asynchronous operations. If your code is callback-based, it is enough to...
Read more >
Cursor-on-Target Message Router User's Guide - MITRE
The Cursor-On-Target (CoT) data strategy centers on the use of a “common language” for ... Event.xsd, identifies a specific node in the type...
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