Browse Source

graphql alpha

Ivan Asmer 6 years ago
parent
commit
2c68c884c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      graphql.md

+ 1 - 1
graphql.md

@@ -104,7 +104,7 @@ async function getPost({id}){
    return await Post.findById(id)
 }
 
-async function getPosts({id}){
+async function getPosts(){
    return await Post.findAll({})
 }
 ```