Closed mashaLutskevich2002 closed 7 months ago
timestampViewed1 Is used in your query
@dimaMachina in my query used, but I don`t use timestampViewed1 in my react project in the .tsx files. This field only in the query. Shouldn't I be getting an error because of this? Because the field is not used anywhere except for the query.
My task is "To get rid of fields that are not used in queries"
I requested the field timestampViewed1 in the query, but I don't use it anywhere. I should get an error because of this
This rule warns unused fields in schema by graphql operations
Please, tell me, is there any rule for my task?
In graphql-eslint not
“This rule warns unused fields in schema by graphql operations”
What does it mean? I don’t understand (( It means that in schema is field with type. And in query (in graphql file) this field don’t use?
нд, 21 січ. 2024 р. о 21:34 Dimitri POSTOLOV @.***> пише:
Closed #2138 https://github.com/dimaMachina/graphql-eslint/issues/2138 as not planned.
— Reply to this email directly, view it on GitHub https://github.com/dimaMachina/graphql-eslint/issues/2138#event-11549775135, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANWLF4UOFR5O5NWLPMOXX5LYPVUTVAVCNFSM6AAAAABCEFY246VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGU2DSNZXGUYTGNI . You are receiving this because you authored the thread.Message ID: @.***>
Rule warns fields that are not selected in any graphql operations https://the-guild.dev/graphql/eslint/rules/no-unused-fields
my eslint (in the overrides)
I have a query