$ curl -fsSL https://deno.land/x/install/install.sh | sh
export DENO_INSTALL="/$HOME/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
$ source ~/.bashrc
$ deno run --allow-net server.ts
# Write your query or mutation here
{
getUser(id: "Avi"){
firstName,
lastName
}
}
Oak framework in Deno is general equivalent of Express in Node.
Author: iAvinashVarma
Source Code: https://github.com/iAvinashVarma/mongo-graphl-deno
#deno #nodejs #node #mongodb #graphql