@tinacms/graphql 0.63.0 → 0.63.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +52 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -853,6 +853,56 @@ var astBuilder = {
853
853
  selectionSet: {
854
854
  kind: "SelectionSet",
855
855
  selections: [
856
+ {
857
+ kind: "Field",
858
+ name: {
859
+ kind: "Name",
860
+ value: "pageInfo"
861
+ },
862
+ arguments: [],
863
+ directives: [],
864
+ selectionSet: {
865
+ kind: "SelectionSet",
866
+ selections: [
867
+ {
868
+ kind: "Field",
869
+ name: {
870
+ kind: "Name",
871
+ value: "hasPreviousPage"
872
+ },
873
+ arguments: [],
874
+ directives: []
875
+ },
876
+ {
877
+ kind: "Field",
878
+ name: {
879
+ kind: "Name",
880
+ value: "hasNextPage"
881
+ },
882
+ arguments: [],
883
+ directives: []
884
+ },
885
+ {
886
+ kind: "Field",
887
+ name: {
888
+ kind: "Name",
889
+ value: "startCursor"
890
+ },
891
+ arguments: [],
892
+ directives: []
893
+ },
894
+ {
895
+ kind: "Field",
896
+ name: {
897
+ kind: "Name",
898
+ value: "endCursor"
899
+ },
900
+ arguments: [],
901
+ directives: []
902
+ }
903
+ ]
904
+ }
905
+ },
856
906
  {
857
907
  kind: "Field",
858
908
  name: {
@@ -1955,7 +2005,7 @@ var Builder = class {
1955
2005
  type: await this._filterCollectionDocumentType(field)
1956
2006
  });
1957
2007
  case "rich-text":
1958
- if (!field.templates) {
2008
+ if (!field.templates || field.templates.length === 0) {
1959
2009
  return astBuilder.InputValueDefinition({
1960
2010
  name: field.name,
1961
2011
  type: astBuilder.InputObjectTypeDefinition({
@@ -2387,7 +2437,7 @@ var validateField = async (field) => {
2387
2437
 
2388
2438
  // package.json
2389
2439
  var name = "@tinacms/graphql";
2390
- var version = "0.63.0";
2440
+ var version = "0.63.1";
2391
2441
  var main = "dist/index.js";
2392
2442
  var typings = "dist/index.d.ts";
2393
2443
  var files = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/graphql",
3
- "version": "0.63.0",
3
+ "version": "0.63.1",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -21,7 +21,7 @@
21
21
  "@graphql-tools/relay-operation-optimizer": "^6.4.1",
22
22
  "@tinacms/datalayer": "0.2.2",
23
23
  "@tinacms/schema-tools": "0.1.0",
24
- "@tinacms/mdx": "0.61.0",
24
+ "@tinacms/mdx": "0.61.1",
25
25
  "body-parser": "^1.19.0",
26
26
  "cors": "^2.8.5",
27
27
  "dataloader": "^2.0.0",