* Unwraps an object of queries, if it was originally passed as a single query.
(queryObject)
| 196 | * Unwraps an object of queries, if it was originally passed as a single query. |
| 197 | */ |
| 198 | function unwrapSingleQuery(queryObject) { |
| 199 | const queryNames = Object.keys(queryObject); |
| 200 | if (queryNames.length === 1 && queryNames[0] === "__DEFAULT__") { |
| 201 | return queryObject.__DEFAULT__; |
| 202 | } |
| 203 | return queryObject; |
| 204 | } |
| 205 | |
| 206 | export default Media; |
no outgoing calls
no test coverage detected
searching dependent graphs…