Skip to content

andwilley/notes-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
                       ]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published