graphcool-lib icon indicating copy to clipboard operation
graphcool-lib copied to clipboard

A convenient tool to use in Graphcool functions to make requests against your Graphcool API

Results 15 graphcool-lib issues
Sort by recently updated
recently updated
newest added

The module resolution log shows is following: >======== Resolving module 'grapcool-lib' from '/Users/omatrot/Documents/some_directory/sandbox/basic ts project structure/GraphCool/queries/roomsavailability/src/hello.ts'. ======== Explicitly specified module resolution kind: 'NodeJs'. 'baseUrl' option is set to '/Users/omatrot/Documents/some_directory/sandbox/basic ts...

Not sure if this is still maintained or not, but it should probably have a license.

Hi! Calling `.generateNodeToken(nodeId, modelName, time)` always results in 1 month period, although function signature suggests it would generate a token with appropriate expiration period https://github.com/graphcool/graphcool-lib/blob/9a5432aa86be3d31c90240679ea05634ac189375/src/index.ts#L81

Hi there, I try to use graphcool-lib in the following way: ``` const client = Graphcool(gcProjectId, { token: gcToken }) const api = client.api('simple/v1') api.request(` some graphql query`) ``` But...

I need this method to reset my local graphcool dev server(docker) because `gc local reset` does not work now. https://github.com/graphcool/graphcool-lib/blob/8ae6365ebb9db962198162ea09a912d961fe8821/src/index.ts#L131 See: https://github.com/Chatie/graphql/issues/3

I have all permissions turned off, but when using `fromEvent()` & `.api()` my resolvers are able to circumvent such restrictions.

The `createSchema` method does not support authorization. This is essential for use in a Gateway.

That would reduce the dependencies and footprint of graphcool-lib. See http://dev.apollodata.com/tools/graphql-tools/remote-schemas.html#fetcher-apollo-fetch for details. Using graphql-request would be exactly the same as using apollo-fetch like in the example.

It seems at least `node-fetch` and `source-map-support` are actually unused.

I think the `fromEvent` function should be renamed to something that expresses what it does. A few suggestions: - `graphcoolProjectContext` (or `getGraphcoolProjectContext`) - `graphcoolProject` (or `getGraphcoolProject`) - `graphcoolAPI` (or `getGraphcoolAPI`)...