@graphql-codegen/java-apollo-android 5.0.0 → 5.0.1-alpha-20261111122252-c6bf7183933740056e3dca938e0b6c523bbff6fc

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.
@@ -13,9 +13,8 @@ function visitFieldArguments(selection, imports) {
13
13
  return (0, plugin_helpers_1.oldVisit)(selection, {
14
14
  leave: {
15
15
  Field: (node) => {
16
- return (`new UnmodifiableMapBuilder<String, Object>(${node.arguments.length})` +
17
- node.arguments.join('') +
18
- '.build()');
16
+ const args = node.arguments || [];
17
+ return (`new UnmodifiableMapBuilder<String, Object>(${args.length})` + args.join('') + '.build()');
19
18
  },
20
19
  Argument: (node) => {
21
20
  return `.put("${node.name.value}", ${node.value})`;
@@ -10,9 +10,8 @@ export function visitFieldArguments(selection, imports) {
10
10
  return oldVisit(selection, {
11
11
  leave: {
12
12
  Field: (node) => {
13
- return (`new UnmodifiableMapBuilder<String, Object>(${node.arguments.length})` +
14
- node.arguments.join('') +
15
- '.build()');
13
+ const args = node.arguments || [];
14
+ return (`new UnmodifiableMapBuilder<String, Object>(${args.length})` + args.join('') + '.build()');
16
15
  },
17
16
  Argument: (node) => {
18
17
  return `.put("${node.name.value}", ${node.value})`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/java-apollo-android",
3
- "version": "5.0.0",
3
+ "version": "5.0.1-alpha-20261111122252-c6bf7183933740056e3dca938e0b6c523bbff6fc",
4
4
  "description": "GraphQL Code Generator plugin for generating Java classes for Apollo-Android",
5
5
  "peerDependencies": {
6
6
  "graphql": "^16.0.0 || ^17.0.0"