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

properties with type object not in the projection schema #7943

Open
barnuri-cp opened this issue Jan 22, 2025 · 0 comments
Open

properties with type object not in the projection schema #7943

barnuri-cp opened this issue Jan 22, 2025 · 0 comments
Labels
🌶️ hot chocolate 🔍 investigate Indicates that an issue or pull request needs more information.

Comments

@barnuri-cp
Copy link

Product

Hot Chocolate

Version

14.0.0

Link to minimal reproduction

https://gist.github.com/barnuri-cp/ceccfb266e1019db36a74ed70c7fe51e

Steps to reproduce

hi, i have a problem in some properties that doesnt propagate to the projections and its look like
the projection hide all the properties with c# type object
and this code was worked before when i set those settings (version 13)

    servicesCollection.AddGraphQLServer()
        .BindRuntimeType<object, AnyType>()
        .BindRuntimeType<object?, AnyType>();

public partial class MyClass
{
public virtual string? Id { get; set; }
public virtual object? Info { get; set; } // projection not working cant make query that use this class and project Info property
}

What is expected?

to be able to get Info from query

{
myClassQuery {
Info
}
}

What is actually happening?

cant get info

Relevant log output

Additional context

No response

@michaelstaib michaelstaib added the 🔍 investigate Indicates that an issue or pull request needs more information. label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌶️ hot chocolate 🔍 investigate Indicates that an issue or pull request needs more information.
Projects
None yet
Development

No branches or pull requests

2 participants