Coder Social home page Coder Social logo

cap-js / graphql Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 5.0 455 KB

CDS protocol adapter for GraphQL

Home Page: https://npm.im/@cap-js/graphql

License: Apache License 2.0

JavaScript 97.13% CAP CDS 1.87% HTML 1.00%
cap cds graphql nodejs sap-cap

graphql's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

graphql's Issues

Tests non-deterministically fail due to timeouts

Depending on the load on my machine some or all tests fail due to timeout. The number of failing tests varies, and all tests succeeding is the exception:

A worker process has failed to exit gracefully and has been force exited. This is likely caused by
tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active
timers can also cause this, ensure that .unref() was called on them.
                                                                                                                    
Test Suites: 14 failed, 3 passed, 17 total                                                                          
Tests:       103 failed, 53 skipped, 126 passed, 282 total                                                          
Snapshots:   0 total                                                                                                
Time:        15.518 s 

Increasing the default timeout circumvents the problem, see #16

Querying fields with null values fails

Queries that request fields with null values fail with error message

Cannot read properties of undefined (reading 'selections')

This could be reproduced by adding a contemporary author whose dateOfDeath and placeOfDeath are null and issuing a query that includes this author and one of these fields.

Test issue

... to experiment with automated issue detection.

Revoke express-graphql dependency since is deprecated module

Hi!

As it's declared here https://github.com/graphql/express-graphql#this-library-is-deprecated express-graphql is not recommended for use anymore. It's using outdated approach.

I'd recommend to switch to https://github.com/graphql/graphql-http

Here is the example how it should be used with express.
https://github.com/graphql/graphql-http#with-express

Also may be it makes sense to think of even starting a separate graphql server, for example by use of Yoga:
https://github.com/graphql/graphql-http#servers

What do you think?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.