Modelizr Versions Save

Generate GraphQL queries from models that can be mocked and normalized.

v1.0.0

7 years ago
  • Added support for name property in a schema for overwriting the default given name
  • Added union inference based on schema structure. This removes need for the union() helper function
  • Fixed issue with model modifiers not returning new instances, but rather modifying themselves
  • Wrong basic query generation and mock generation tests

v1.0.0-beta.12

7 years ago
  • Added support for the min max quantity and decimal properties on a schema
  • Fixed a bug preventing .only and .empty from working correctly

v1.0.0-beta.11

7 years ago
  • Changed how field types are managed internally
  • Object type fields now need to have their properties declared explicitly
  • ModelBuilder now only appends root children
  • Rewrote documentation

v1.0.0-beta.10

7 years ago

Changed GraphQLError class to no longer extend Error to allow for instanceof checks to function correctly.

v1.0.0-beta.9

7 years ago
  • Fixed Array(Object) type fields from generating incorrectly nested GraphQL queries.
  • Added ability to parameterize fields that are not models via the .fields() modifier.
  • Removed flow-types from npm build in favor for upcoming experimental flow-type libs.

v1.0.0-beta.8

7 years ago
  • Debugging is now off by default.
  • QueryGeneration now correctly supports empty fields.
  • Can now alias field names using the __alias property.

v1.0.0-beta.7

7 years ago
  • Moved non-production dependencies into devDependencies.
  • Fixed naming reference that stopped .headers() from mutating the correct property.

v1.0.0-beta.6

7 years ago

Worked flow-types into the npm release.

v1.0.0-beta.5

7 years ago

Fixed bugs in the QueryGenerator and completely reworked the ModelBuilder to allow merge-first model editing. This makes creating fragments very easy.

v1.0.0-beta.4

7 years ago

Added two more types namely:

  • Boolean ['boolean']
  • 'float'

Added type generator to mocks that generates data based on field types.