question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setup with Meteor ?

See original GitHub issue

Hi, I’m new with Apollo and GraphQL. I see the setup instruction of this module is possible with Express. I believe Apollo create an express app on the server side with Meteor but it is completely opaque.

Any idea about setup apollo-upload-server on the server side with Meteor ? My main server code. (Apollo setup)

import { createApolloServer } from "meteor/apollo";
import { makeExecutableSchema } from "graphql-tools";
import merge from "lodash/merge";

import UsersSchema from '../../api/users/User.graphql';
import UsersResolvers from '../../api/users/resolvers';
import PagesSchema from '../../api/pages/Page.graphql';
import PagesResolvers from '../../api/pages/resolvers';
import CommonSchema from '../../api/common/Common.graphql';
import CommonResolvers from '../../api/common/resolvers';

const typeDefs = [UsersSchema, PagesSchema, CommonSchema];

const resolvers = merge(UsersResolvers, PagesResolvers, CommonResolvers);

const schema = makeExecutableSchema({
  typeDefs,
  resolvers
});

createApolloServer({ schema });

Thanks for your answer and great job for this project !

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
macrozonecommented, Jun 5, 2018

@Brouilles

meteor usage is fairly simple:

import { createApolloServer } from 'meteor/apollo';
import { apolloUploadExpress } from 'apollo-upload-server';

 const schema = makeExecutableSchema(...);
 createApolloServer(
    {
      schema
    },
    {
      graphiql: true,
      configServer: expressServer => {
        expressServer.use(bodyParser.json({ limit: '5mb' }));
        expressServer.use(apolloUploadExpress());
      }
    }
  );
2reactions
Brouillescommented, Apr 7, 2018

Thanks for your answer. Because i don’t have many hours to make the project, i simply use Base64 images. And not this extension.

Thanks for your times.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install the Latest Version of Meteor!
Watch tutorials, walkthroughs and announcements, all on YouTube. Explore now. Try Meteor Cloud. Install Meteor, download packages and deploy your app for free ......
Read more >
Meteor - Environment Setup - Tutorialspoint
In this chapter, we will learn how to install Meteor on Windows operating system. Before we start working with Meteor, we will need...
Read more >
How To Install Meteor on Mac, Windows, & Linux
If you're a Windows user, visit meteor.com/install and download the .exe file. Installing Meteor on Windows is like installing any other kind of...
Read more >
Meteor Introduction and Environment Setup - GeeksforGeeks
Meteor is an open-source full-stack JavaScript platform that is useful for developing modern web and mobile applications.
Read more >
Easy CRUD setup with Meteor in only 4 steps from scratch
Easy CRUD setup with Meteor in only 4 steps from scratch · npm install -g meteor. An alternative for Linux and OS X,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found