title: GraphQL Resolver for Relations
body: <p>I would like to write a mutation, which when creating a tracker, enters the tracker model ID and the user ID for the respective tracker model and the user. My question relates to the return statement in the Resolve function: how can I execute both functions directly after each other, so that it´s being written in both collections?</p>
  
  <p>Here is my mutation. As it is currently written, only the second variable is executed, in this case only "tm".</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>createTracker: {
        type: TrackerType,
        args: {
          trackerModelID: {type: GraphQLID },
          userId: {type: GraphQLID },
          access_token: {type: GraphQLString },
        },
        resolve(parent, args){
          let tracker = new Tracker({
            trackerModelID: args.trackerModelID,
            userId: args.userId,
            access_token: args.access_token,
          });
          tracker.save();
          let tm = TrackerModel.updateOne({ _id: args.trackerModelID }, { $push: { trackerIds: tracker._id } });
          let us = User.updateOne({ _id: args.userId }, { $push: { trackerIds: tracker._id } });
          return us &amp;&amp; tm
        },
      },</code></pre>
  </div>
  </div>
  </p>