Closed RealYukiSan closed 1 year ago
I think the error appears because the return type (in this case is *model.Account
) comes from another file, but I don't know what causes it to happen, I would really appreciate it if someone could tell me what actually happens and what causes it.
@Reyuki-san I don't think that your error is related to the library. It is an error from your data layer. You can confirm this if you return a hard-coded instance of this struct (which is not populated by the data layer). Alternatively, you can run the DB code which executes the query without the GraphQL resolver and confirm that you get the same error. The fact that the struct is defined in another file is definitely not the problem in this case. I am closing this issue as it is not an issue with the library.
@pavelnikolov Thank you for your response and for helping me troubleshoot the issue. I apologize for any inconvenience or confusion caused by my initial assumption that the error was related to the library. I will try your suggestions and confirm if the error is coming from my data layer. Thank you again for your assistance.
I tried to create a simple resolver, but it seems to have gone wrong. Am I missing something? Here's the code.
The resolver
and the database
and the entry point
and the schema
full error
full directory structure: