wesovilabs / mollydb

A GraphQL configuration file database
Other
8 stars 0 forks source link

create hooks to more than a single property at time #4

Open ivancorrales opened 6 years ago

ivancorrales commented 6 years ago

So far, we can only create hooks to single properties. It would be handy if we could do it for more than a property, for example for a . whole document or even properties that match with a pattern. Below some ideas to be considered

mutation {
  propertyRestHook(
    uri: "http://wesovilabs.com/_config/database", 
    path: "mollydb://db/mongodb?key=database.(\w+)"
  )
}
mutation {
  propertyRestHook(
    uri: "http://wesovilabs.com/_config/database", 
    path: "mollydb://db/mongodb?key=(\w+)"
  )
}