Ver código fonte

graphql alpha

Ivan Asmer 6 anos atrás
pai
commit
2c68c884c0
1 arquivos alterados com 1 adições e 1 exclusões
  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({})
 }
 ```