Skip to content

Instantly share code, notes, and snippets.

@resistdesign
Last active July 11, 2017 04:53
Show Gist options
  • Select an option

  • Save resistdesign/f47613a2254df76f5e1dc13324c246b8 to your computer and use it in GitHub Desktop.

Select an option

Save resistdesign/f47613a2254df76f5e1dc13324c246b8 to your computer and use it in GitHub Desktop.
Standard Persistence Operations

Standard Persistence Operations

Driven by UTS

Bulk Operations (This may just be the right basis for all transactions here???)

Collection Management

  • Create Collection
    • typeName
    • typeDefinition
  • Read Collection Type Definition
    • typeName
  • Update Collection
    • typeName
    • typeDefinition
  • Delete Collection
    • typeName

Basic

  • Create
    • type (Multiple, with a normalized map ???)
    • item (Multiple ???)
  • Read
    • type (Multiple, with a normalized map ???)
    • id (Multiple ???)
  • Update
    • type (Multiple, with a normalized map ???)
    • item (Prior values? Or values at the time of request?) (Multiple ???)
  • Delete
    • type (Multiple, with a normalized map ???)
    • id (Multiple ???)
  • Search (UQS)
    • Default fields on type definitions (???) (Just a UI thing???)
    • Required Input:
      • type (Multiple, with a normalized map ???)
      • query (UQS)
      • config
        • count
        • onlyIds
        • pageNumber
        • itemsPerPage
        • orderBy
        • descending
  • Add (Nest data within objects or arrays)
    • parentType (Multiple, with a normalized map ???)
    • parentId
    • toField
    • atIndex (???)
    • item (Or id ???) (Multiple ???)
  • Remove
    • parentType (Multiple, with a normalized map ???)
    • parentId
    • fromField
    • id (Or index???) (Multiple ???)
  • Remove All (Necessary ???)
    • parentType (Multiple, with a normalized map ???)
    • parentId
    • inField
  • Reorder (Move within an array)
    • parentType (Multiple, with a normalized map ???)
    • parentId
    • withinField
    • indices
    • toIndex
  • Validate
    • type (Multiple, maybe a map of keys as types and values as arrays of items ???)
    • item (Multiple ???)
  • Explain (Metadata)
    • type (Multiple ???)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment