Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 676 Bytes

README.md

File metadata and controls

51 lines (37 loc) · 676 Bytes

notes-api

Schema

Query

note(
  title: String
  noteid: String
): Note!

notes: [Note!]!

Mutation

addNote(
  newTitle: String!
  newContent: String!
): Note!

updateNote(
  updateId: String!
  maybeNoteTitle: String
  maybeNoteContent: String
): Note!

deleteNotes(
  noteIdList: [String!]!
): [Note!]!

Usage

Requires definition of src/Apikeys.hs

{-# LANGUAGE OverloadedStrings     #-}

module Apikeys (apikeys) where

import qualified Data.Set as Set
import qualified Data.Text.Lazy as TL

apikeys :: Set.Set TL.Text
apikeys = Set.fromList [ "test"
                       , "test2"
                       ]