@searchable transforms and connections
See original GitHub issueIs there a way to get the @searchable to also work with @connection. Say I have these models.
type Post @model @searchable {
id: ID!
text: String
votes: [Vote] @connection(name: "PostVotes")
}
type Vote @model @searchable {
id: ID!
vote: Int!
post: Post! @connection(name: "PostVotes")
}
The generated searchVotes query would then only be able to filter on id and vote. But say I want to get all the votes for a certain postId.
Likewise the ListVotes query doesn’t either provide a filter on the post connection.
So how would I in this case go about to get all the Votes on a certain post?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:15
- Comments:16 (2 by maintainers)
Top Results From Across the Web
[1902.01280] A New Class of Searchable and Provably ... - arXiv
This new family is a special case of a more general class of transformations based on context adaptive alphabet orderings, a concept introduced ......
Read more >Transforming data | Elasticsearch Guide [8.5] | Elastic
Transforms enable you to convert existing Elasticsearch indices into summarized indices, which provide opportunities for new insights and analytics.
Read more >transforms.conf - Splunk Documentation
Use this name when you configure field extractions, lookup tables, and event routing in props.conf. For example, if you are setting up an ......
Read more >Transform Data by Example - Microsoft Research
Moreover, you can add your own data transformation code into the collection, and Transform-Data-by-Example will make them instantly searchable ...
Read more >API (GraphQL) - Overview - AWS Amplify Docs
You are currently viewing the legacy GraphQL Transformer documentation. ... The GraphQL Transform provides a simple to use abstraction that helps you quickly ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey y’all 👋 I wanted to follow-up on this one and show how this is now possible with GraphQL Transformer v2 and the new relational directives! Using the following schema we will be able to create a Post, create a Vote linked to the Post, then run a search query by post ID.
Then we can execute the following in order to ultimately search Votes by Post ID
Where the search query will return:
Closing issue 🙂 if you feel this does not quite cover your use case please reply back to this thread and we can re-open to investigate further!
How to search votes by text in related posts? For example how to get votes, where related post contains word “test” in field
text
?