Skip to content

Commit

Permalink
rename arguments to attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronZyLee committed Mar 27, 2024
1 parent ece7812 commit 99ce437
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/appsync-modelgen-plugin/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export type FieldType = ScalarType | {
// @public (undocumented)
export type Input = {
name: string;
arguments: Arguments;
attributes: Arguments;
};

// @public (undocumented)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,13 +528,13 @@
"name": {
"type": "string"
},
"arguments": {
"attributes": {
"$ref": "#/definitions/Arguments"
}
},
"required": [
"name",
"arguments"
"attributes"
],
"additionalProperties": false,
"description": "Input Definition"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,7 @@ exports[`Custom queries/mutations/subscriptions & input type tests should genera
\\"inputs\\": {
\\"CustomInput\\": {
\\"name\\": \\"CustomInput\\",
\\"arguments\\": {
\\"attributes\\": {
\\"customField1\\": {
\\"name\\": \\"customField1\\",
\\"isArray\\": false,
Expand All @@ -1865,7 +1865,7 @@ exports[`Custom queries/mutations/subscriptions & input type tests should genera
},
\\"NestedInput\\": {
\\"name\\": \\"NestedInput\\",
\\"arguments\\": {
\\"attributes\\": {
\\"content\\": {
\\"name\\": \\"content\\",
\\"isArray\\": false,
Expand Down Expand Up @@ -2167,7 +2167,7 @@ exports[`Model Introspection Visitor Metadata snapshot should generate correct m
\\"inputs\\": {
\\"SimpleInput\\": {
\\"name\\": \\"SimpleInput\\",
\\"arguments\\": {
\\"attributes\\": {
\\"name\\": {
\\"name\\": \\"name\\",
\\"isArray\\": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export type FieldAttribute = ModelAttribute;
*/
export type Input = {
name: string;
arguments: Arguments;
attributes: Arguments;
}
/**
* Interface Definition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class AppSyncModelIntrospectionVisitor<
private generateGraphQLInputMetadata(inputObj: CodeGenInputObject): Input {
return {
name: inputObj.name,
arguments: inputObj.inputValues.reduce((acc, param ) => {
attributes: inputObj.inputValues.reduce((acc, param ) => {
const arg: Argument = {
name: param.name,
isArray: param.isList,
Expand Down

0 comments on commit 99ce437

Please sign in to comment.