you've got to bind ?id-passed to the query by passing it as an argument
https://docs.datomic.com/cloud/query/query-data-reference.html#inputs