Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL operation .get not supported in Swift #3038

Open
ChadyG opened this issue Jun 22, 2023 · 2 comments
Open

GraphQL operation .get not supported in Swift #3038

ChadyG opened this issue Jun 22, 2023 · 2 comments
Labels
api Issues related to the API category feature-request Request a new feature requires attention Follow up needed for more than 10 days work in progress Issues was triaged and investigation done

Comments

@ChadyG
Copy link

ChadyG commented Jun 22, 2023

Describe the bug

Starting to switch over to transform v2 in order to get at some of the new features, including finer controls on authorized read operations in our GraphQL API. Using the get specifier in the GraphQL, but after running codegen I'm getting the following error.

Type 'Array.ArrayLiteralElement' (aka 'ModelOperation') has no member 'get'

Steps To Reproduce

Steps to reproduce the behavior:
1. Specify some auth rules that allow only .get operations on your model/field
2. Run codegen models
3. Compile in Xcode

Expected behavior

No compile issues

Amplify Framework Version

1.30.2

Amplify Categories

API

Dependency manager

Cocoapods

Swift version

5.0

CLI version

12.1.1

Xcode version

14.3.1

Relevant log output

<details>
<summary>Log Messages</summary>


Type 'Array<ModelOperation>.ArrayLiteralElement' (aka 'ModelOperation') has no member 'get'
```

Is this a regression?

No

Regression additional context

No response

Device

iPhone 13 Pro

iOS Version

16.5

Specific to simulators

No response

Additional context

No response

@royjit
Copy link
Contributor

royjit commented Jun 23, 2023

Thank you for raising this issue. We have a PR that solves this library issue - #2720

Will update here when we have the PR released.

@royjit royjit added api Issues related to the API category requires attention Follow up needed for more than 10 days work in progress Issues was triaged and investigation done labels Jun 23, 2023
@phantumcode phantumcode added the bug Something isn't working label Jul 24, 2023
@lawmicha lawmicha added feature-request Request a new feature and removed bug Something isn't working labels May 2, 2024
Copy link
Contributor

github-actions bot commented May 2, 2024

This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issues related to the API category feature-request Request a new feature requires attention Follow up needed for more than 10 days work in progress Issues was triaged and investigation done
Projects
None yet
Development

No branches or pull requests

4 participants