Skip to content

Frequently Asked Questions

Joseph Savona edited this page Jan 22, 2016 · 14 revisions

Asked? Answered.

This page is a collection of links to common questions that have been answered in an issue. Feel free to add a link here when closing out a "question" issue that has been answered.


How To & Troubleshooting

How to implement searching within a connection?

Let's say I want to get all widgets starting with "A", either paginated or not.

Answered in #59.

Can I Use WebSockets Instead of XHR/fetch?

Relay doesn't yet support real-time updates (see below), but you can customize the network layer used by Relay.

See related discussion at #51.

How can I create or manipulate Relay.QL-queries during runtime?

Unfortunately it is not possible to create or manipulate Relay.QL-queries during runtime. The queries are transformed during compile time using babel-relay-plugin. This step annotates each field with metadata from the schema without which Relay can't process the query.


Future Features

Memory Management & Cache Eviction APIs

See this discussion for more on Relay's approach to cache/memory management.

Does Relay Support Real-Time Updates?

Please see this blog post - work on the Subscriptions is being tracked in #541.