rlancer / gapi-to-graphql Goto Github PK
View Code? Open in Web Editor NEWConverts any Google Data Api to GraphQL
Home Page: https://www.collaborizm.com/project/Skkk3bBA-
Converts any Google Data Api to GraphQL
Home Page: https://www.collaborizm.com/project/Skkk3bBA-
I need to work with google #places.
Thank you!
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!
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 :
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.