-
-
Save iparrabb/6db927029681f7aae20685c36ba9d58d to your computer and use it in GitHub Desktop.
This file contains 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
const listPosts = `query listPosts( | |
$filter: ModelPostFilterInput | |
$limit: Int | |
$nextToken: String | |
) { | |
listPosts(filter: $filter, limit: $limit, nextToken: $nextToken) { | |
items { | |
id | |
user_id | |
title | |
body | |
createdAt | |
} | |
} | |
}`; | |
const { data } = await API.graphql( | |
graphqlOperation(listPosts, { | |
user_id: { | |
eq: 10 | |
} | |
}) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment