mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Update apollo.js to use async
This commit is contained in:
@@ -9,8 +9,8 @@ const express = WebAppInternals.NpmModules.express.module;
|
||||
|
||||
const resolvers = {
|
||||
Query: {
|
||||
getLink: async (obj, { id }) => LinksCollection.findOne(id),
|
||||
getLinks: async () => LinksCollection.find().fetch()
|
||||
getLink: async (obj, { id }) => LinksCollection.findOneAsync(id),
|
||||
getLinks: async () => LinksCollection.find().fetchAsync()
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user