// UI meta
export const operations = [
  {
    name: 'find',
    description: 'TBD',
    tags: ['query'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      where: [],
      limit: 5,
    },
  },
  {
    name: 'findOne',
    description: 'TBD',
    tags: ['query'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      where: [],
    },
  },
  {
    name: 'get',
    description: 'TBD',
    tags: ['query'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      id: '',
    },
  },
  {
    name: 'getByIds',
    description: 'TBD',
    tags: ['query'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      ids: [''],
    },
  },
  {
    name: 'pull',
    description: 'TBD',
    tags: ['query'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      id: '',
      versionId: '',
    },
  },
  {
    name: 'insertOne',
    description: 'TBD',
    tags: ['command'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      value: {},
    },
  },
  {
    name: 'insertMulti',
    description: 'TBD',
    tags: ['command'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      values: [
        {},
      ]
    },
  },
  {
    name: 'insertAndGet',
    description: 'TBD',
    tags: ['command'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      value: {},
    },
  },
  {
    name: 'insertAndGetMulti',
    description: 'TBD',
    tags: ['command'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      values: [
        {},
      ]
    },
  },
  {
    name: 'updateById',
    description: 'TBD',
    tags: ['command'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      id: '',
      operation: {
        xxx: 0,
      }
    },
  },
  {
    name: 'updateMulti',
    description: 'TBD',
    tags: ['command'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      where: [],
      operation: {
        xxx: 0,
      },
    },
  },
  {
    name: 'updateAndGet',
    description: 'TBD',
    tags: ['command'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      id: '',
      operation: {
        xxx: 0,
      }
    },
  },
  {
    name: 'updateAndFetch',
    description: 'TBD',
    tags: ['command'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      where: [],
      operation: {
        xxx: 0,
      },
    },
  },
  {
    name: 'push',
    description: 'TBD',
    tags: ['command'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      id: '',
      operations: [
        {
          xxx: 0,
        }
      ],
      versionId: '',
    },
  },
  {
    name: 'delete',
    description: 'TBD',
    tags: ['command'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      id: '',
    },
  },
  {
    name: 'login',
    description: 'TBD',
    tags: ['command', 'users'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      credentials: {}
    },
  },
  {
    name: 'logout',
    description: 'TBD',
    tags: ['command', 'users'],
    payload: true,
    availableOnHttp: true,
    // availableOnWebsocket: false,
    defaultPayload: {
      userId: '',
    },
  },
]

@@ -208,34 +208,34 @@
  %7B%0A      where: 
-%5B%5D
+%7B%7D
 ,%0A      limit: 5
@@ -431,26 +431,26 @@
      where: 
-%5B%5D
+%7B%7D
 ,%0A    %7D,%0A  %7D
@@ -2381,34 +2381,34 @@
  %7B%0A      where: 
-%5B%5D
+%7B%7D
 ,%0A      operatio
@@ -2899,10 +2899,10 @@
 re: 
-%5B%5D
+%7B%7D
 ,%0A  

change default payload