How would you take this example, and pass in the I...
# prisma-whats-new
d
How would you take this example, and pass in the ID as a query variable?
Copy code
query {
  Post(id: "cixnen24p33lo0143bexvr52n") {
    id
    title
    published
  }
}
k
@doug_w Here's how the query should look:
Copy code
query($id: ID!) {
  Post(id: $id) {
    id
    title
    published
  }
}
you need to define the variable in the query statement
d
@kaihuang724 Thank you!