Hello, could someone provide a small example how t...
# prisma-whats-new
d
Hello, could someone provide a small example how to make a graphcool api call authenticated inside of a resolver function?
m
Copy code
import { fromEvent } from 'graphcool-lib'

export default async event => {
  console.log(event)

  // check if user is authenticated
  if (!event.context.auth || !event.context.auth.nodeId) {
    return { data: null }
  }