deep-foundation / deep-memo-app

The Unlicense
11 stars 8 forks source link

Add `_id` syntax to insert operation #57

Open FreePhoenix888 opened 1 year ago

FreePhoenix888 commented 1 year ago

Example

await deep.insert(
  {
    type_id: {
      _id: [
        '@deep-foundation/core', 'Type'
      ]
    }
  }
);

Additional Information

We are able to use this syntax in select operation to reduce amount of network requests. Why cannot we add this feature to insert operation?

await deep.select(
  {
    type_id: {
      _id: [
        '@deep-foundation/core', 'Type'
      ]
    }
  }
);