Coder Social home page Coder Social logo

gapi-to-graphql's People

Contributors

dependabot[bot] avatar incr3m avatar rlancer avatar

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  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  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

gapi-to-graphql's Issues

someEndpointsHaveNoGraphQLRepresentationAndMeDontLikeThat - Support for maps in the endpoints

Hey!

Just playing around with this today, and I was really just looking at the schemas being generated until I came across this gem:

type ruleGroups {
    thisTypeHasNoFieldsAndGraphQLDontLikeThat: Boolean
}

I'm going to have to be honest and say I don't really think that's gonna work, funny as it may be:

Can I make two suggestions on how to deal with this?

First, those types usually are just objects with keys, something like this in JSON:

(key): {
  ...
}

My suggestion would be turn that into a type like:

type {
  key: 'blahblah'
  ...
}

If that wouldn't work, I would change the initial type to something like:

type ruleGroups {
    thisTypeHasNoFieldsAndGraphQLDontLikeThat: Boolean
    json: String
}

And just do a JSON.stringify(...) and dump it in that json field

Thanks!

gapi-to-graphql slides api not working - credentials error is returned

Hi,
I have been trying gapi-to-graphql as dependency in a node.js project i'm currently working on.
I'm working with Sheets V4 and Slides V1.

I have :

  • a public spreadsheet on google sheets with a spreadsheetId
  • a public presentation on google slides with a presentationId
  • on google api dashboard (https://console.developers.google.com/apis/dashboard) I have a project with a created API Key credentials and I have enabled both Sheets & Slides API libraries
  • There is no restrictions on API Key

I have developped a Node.js project with Apollo, Express and gapi-to-graphql dependencies.

I'm trying one read-only query for each library Sheets & Slides


query {
	SheetsApi(key: "myAPIKey") {
		spreadsheets {
			get(spreadsheetId: "mySpreadsheetId", includeGridData: true) {
				spreadsheetId
			}
		}
	}
}

query {
	SlidesApi(key: "myAPIKey") {
		presentations {
			get(presentationId: "myPresentationId") {
				presentationId
			}
		}
	}
}

The problem I have is that query on sheets is working (I retrieve spreadsheetId as response and i can add parameters to the query to fetch data from cells) but the query on slides is not working.
The result of query on slides is :

Unexpected error value: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

As I'm pretty sure everything is well set up on my google account, Is there a chance that there is a bug on gapi-to-graphql/google_apis/slides-v1.js ?

Thanks by advance.
David.

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.