次のようなルートがある場合:
<Route path="/something/:id" component={Something} />
そして、私はこのようなクエリを持っています
const somethingQuery = gql`query getSomething {
something(id:1) {
name
}
}`
export default compose(
graphql(somethingQuery),
)(Something)
現在、これは常にof でプルsomethingします。id1
:idurl パラメータをクエリに渡すにはどうすればよいidですか?