Created
December 17, 2019 10:46
-
-
Save indreklasn/7180cce94525ec5c597f4c66e73fa5be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { client, q } from '../config/db' | |
const deleteNote = noteRef => client.query( | |
q.Delete(q.Ref(q.Collection('notes'), noteRef)) | |
) | |
.then(res => res) | |
.catch(err => console.warn(err.message)) | |
export default deleteNote |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment