Explorar o código

graphql alpha

Ivan Asmer %!s(int64=6) %!d(string=hai) anos
pai
achega
2c68c884c0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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({})
 }
 ```