UNPKG

refine-jsonapi

Version:

Data provider for refine with JSON:API specification. refine is a React-based framework for building internal tools, rapidly. JSON:API is a specification for building apis in JSON.

20 lines (19 loc) 400 B
export const mapOperator = (operator) => { switch (operator) { case "eq": case "ne": case "gt": case "lt": case "gte": case "lte": case "in": case "nin": case "null": case "nnull": return `${operator}`; case "contains": return "like"; default: return ""; } };