Skip to content

Latest commit

 

History

History
84 lines (61 loc) · 2.31 KB

File metadata and controls

84 lines (61 loc) · 2.31 KB

Changelog

Tags:

  • 💥 [Breaking Change]
  • 🚀 [New Feature]
  • 🐛 [Bug Fix]
  • 📝 [Documentation]
  • 🏠 [Internal]
  • 💅 [Polish]

1.0.0-alpha.0 - 2018-01.02

  • 🚀 All possible resolvers are now being printed
  • 💥 SchemaConfig.resolver type was changed, now it accepts parent type
  • 💥 Module names for Query, Mutation and Subscription are now singular instead of plural (Queries -> Query)

Breaking changes

SchemaConfig.resolver type was changed, it now accepts parent type

-  type resolver('args, 'fieldType, 'result) =
-    (unit, 'args) => Js.Promise.t('result);
+  type resolver('parent, 'args, 'fieldType, 'result) =
+    ('parent, 'args) => Js.Promise.t('result);

Module names for Query, Mutation and Subscription are now singular instead of plural (i.e. Queries -> Query)

-let query =
-  SchemaTypes.Queries.t(
-    ~article=Articles.getByIdResolver,
-    ~articles=Articles.resolver,
+let resolvers: SchemaTypes.t =
+  SchemaTypes.t(
+    ~query=
+      SchemaTypes.Query.t(
+        ~article=Articles.getByIdResolver,
+        ~articles=Articles.resolver,
+        (),
+      ),
+    ~mutation=SchemaTypes.Mutation.t(~addArticle=Articles.addArticle, ()),
+    ~comment=SchemaTypes.Comment.t(~content=Articles.Comments.content, ()),
     (),
   );
-
-let mutation = SchemaTypes.Mutations.t(~addArticle=Articles.addArticle, ());

0.4.1 - 2018-11-03

  • 💅 Refactor where __typename is filtered

0.4.0 - 2018-11-03

  • 🐛 Don't print __typename for fields

0.3.1 - 2018-10-24

  • 🐛 Fix schema bin env

0.3.0 - 2018-10-24

  • 🚀 Add own introspection query (3c1d1995)
  • 🐛 Fix types for extended queries

0.2.2 - 2018-10-23

0.2.1 - 2018-10-23

  • 🐛 #3 Fix nullable list type

0.2.0 - 2018-10-23

  • 🐛 Fix type of printed field type (7610909d)
  • 🏠 Fix githooks

0.1.3 - 2018-10-23

  • 🐛 Fix npm bin file

0.1.0-0.1.2 – 2018-10-22

  • Initial release