cajuncoding / GraphQL.RepoDB

A set of extensions for working with HotChocolate GraphQL and Database access with micro-orms such as RepoDb (or Dapper). This extension pack provides access to key elements such as Selections/Projections, Sort arguments, & Paging arguments in a significantly simplified facade so this logic can be leveraged in the Serivces/Repositories that encapsulate all data access (without dependency on IQueryable and execution outside of the devs control).
MIT License
40 stars 5 forks source link

Sample.StarWars-AzureFunctions-RepoDB does not compile #13

Closed rmacfadyen closed 4 months ago

rmacfadyen commented 4 months ago

The Sample.StarWars-AzureFunctions-RepoDB is out of date. It uses the older version of the extensions.

Any chance of an update?

Here are the compile errors I get (I just cloned and build that project):

3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(4,20,4,43): error CS0234: The type or namespace name 'PreProcessingExtensions' does not exist in the namespace 'HotChocolate' (are you missing an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(7,20,7,43): error CS0234: The type or namespace name 'PreProcessingExtensions' does not exist in the namespace 'HotChocolate' (are you missing an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(8,20,8,43): error CS0234: The type or namespace name 'PreProcessingExtensions' does not exist in the namespace 'HotChocolate' (are you missing an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(17,23,17,37): warning CS0618: 'ExtendObjectTypeAttribute.Name.set' is obsolete: 'Use the new constructor.'
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(47,29,47,43): error CS0246: The type or namespace name 'IParamsContext' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(44,27,44,63): error CS0246: The type or namespace name 'IPreProcessedCursorSlice<>' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(83,29,83,43): error CS0246: The type or namespace name 'IParamsContext' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(80,27,80,69): error CS0246: The type or namespace name 'IPreProcessedOffsetPageResults<>' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(113,29,113,43): error CS0246: The type or namespace name 'IParamsContext' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(110,27,110,57): error CS0246: The type or namespace name 'PreProcessedCursorSlice<>' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(145,29,145,43): error CS0246: The type or namespace name 'IParamsContext' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(142,27,142,57): error CS0246: The type or namespace name 'PreProcessedCursorSlice<>' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(174,29,174,43): error CS0246: The type or namespace name 'IParamsContext' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(195,29,195,43): error CS0246: The type or namespace name 'IParamsContext' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(47,14,47,27): error CS0246: The type or namespace name 'GraphQLParamsAttribute' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(47,14,47,27): error CS0246: The type or namespace name 'GraphQLParams' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(83,14,83,27): error CS0246: The type or namespace name 'GraphQLParamsAttribute' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(83,14,83,27): error CS0246: The type or namespace name 'GraphQLParams' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(113,14,113,27): error CS0246: The type or namespace name 'GraphQLParamsAttribute' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(113,14,113,27): error CS0246: The type or namespace name 'GraphQLParams' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(145,14,145,27): error CS0246: The type or namespace name 'GraphQLParamsAttribute' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(145,14,145,27): error CS0246: The type or namespace name 'GraphQLParams' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(174,14,174,27): error CS0246: The type or namespace name 'GraphQLParamsAttribute' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(174,14,174,27): error CS0246: The type or namespace name 'GraphQLParams' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(195,14,195,27): error CS0246: The type or namespace name 'GraphQLParamsAttribute' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(195,14,195,27): error CS0246: The type or namespace name 'GraphQLParams' could not be found (are you missing a using directive or an assembly reference?)
3>Done building project "StarWars-AzureFunctions-RepoDB.csproj" -- FAILED.
cajuncoding commented 4 months ago

Hmmm…it should def compile as I wouldn’t have published without a fully successful compile.

What exactly is breaking the compile though? You are not specific about how compile would break because everything in Git should be working, so I assumed you just updated version…

Thanks, I’ll try to take a look this evening to confirm that the Git main branch works.

rmacfadyen commented 4 months ago

I added the errors to the original report.

cajuncoding commented 4 months ago

Ok, thanks for letting me know! I'm not sure how it didn't fail compile when I first pushed, but trying to run it just now I get these exact compilation issues ✅.

Now updated the project to account for all (braking/deprecating) changes needed to address the issues noted 👍.

Everything updated in main branch now. Hope this helps!