This repository has been archived by the owner on Sep 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Newbie questions #52
Comments
Glad to hear GrAMPS is useful for you! (Me too!!)
A simple import { microGraphiql, microGraphql } from 'apollo-server-micro';
import micro, { send } from 'micro';
import { get, post, router } from 'microrouter';
import gramps from '@gramps/gramps';
import XKCD from '@gramps/data-source-xkcd';
const graphqlHandler = microGraphql(gramps({dataSources: [XKCD]}));
const graphiqlHandler = microGraphiql({ endpointURL: '/graphql' });
const server = micro(
router(
get('/graphql', graphqlHandler),
post('/graphql', graphqlHandler),
get('/graphiql', graphiqlHandler),
(req, res) => send(res, 404, 'not found')
)
);
server.listen(3000); |
Hey, @goluis — everything @ecwyne said is correct. We haven't put together all the examples yet, but GrAMPS returns a GrAMPS has been running in production at IBM Cloud, so it's definitely production-ready. Please let us know if you have any additional questions! Also feel free to join the #gramps Slack channel for questions. |
You can sign up for the Graphcool slack channel here. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello guys, first of all I think I saw maybe a month ago a youtube video where this project was getting announced (and the IBM fancy stuff), I got very excited because Graphql microservices + schema stitching sounds very complicated to me but it's something that I really want to do, after that day I came here and realize that some parts of the docs were not yet done (Like the getting started) so before taking any early decision I waited to see the updates every 2 days, today I see that the page changed, some new commits were made, the getting started guide now works and it looks to me that this project is alive and cool, so aside from saying that I'm really excited for this I have the following questions before getting deep in the docs.
I haven't had the time to read the entire new docs but I will because I want to have something like this, thank you very much guys 💛
The text was updated successfully, but these errors were encountered: