cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem Custome Schema GraphQL

anai_barrera10
Super Contributor

Hi, I set up the API and made queries having a correct answer but I couldn't get the customizable attributes out of the meta classes

I have a question about querying data with GraphQL. I’ve checked the schema, but it seems that some custom fields are missing. Could you help me understand why this might be happening and how to resolve it?

anai_barrera10_0-1727114755213.png

Thx

 

3 Replies

fakhouryy
Bizzdesign Partner

Encountered this error in my Hopex 6.2.0+939. Few things I've done:

  • Checked whether mgwmapp.exe was correctly registered for the instance using the following command in PowerShell:
    this will tell you if you mgwmapp.exe is correctly registered for your instance. (Mine was pointing to port 5002, an instance that I had deleted).
reg query "HKCR\CLSID" /s /f "mgwmapp.exe" | Select-Object -First 20

You should be able to see PowerShell output as follows:

(Default)    REG_SZ    C:\ProgramData\MEGA\Hopex Application Server\5001\.shadowFiles\hopex.core\17.2.0+7107\system\mgwmapp.exe /Automation
  • Fix the typo in "HOPEX-regserver.ps1" file, and run it again as Admin. The file should be located in your "C:\ProgramData\MEGA\Hopex Application Server\<port>" installation directory.
    In your "HOPEX-regserver.ps1" note the typo at line 28, the "t" in "lengh" is missing.
$latestDirectory = $sortedHopexCoreVersion[$lengh-1]​
  • If this still did not register you mgwmapp.exe, then force it using this command in Powershell (Adjust based on your installation directory of course, and run PS as Admin):
& "C:\ProgramData\MEGA\Hopex Application Server\5001\.shadowFiles\hopex.core\17.2.0+7107\system\mgwmapp.exe" /regserver​

This should fix your issue provided you have the metamodel Absolute ID, User, password, profile, Environment Name, Repo Name, etc. and all other parameters correctly configured.

anai_barrera10
Super Contributor

Hi, 

I am checking the schema with Postman at:

 

{server_url}/HOPEXGraphQL/api/ITPM/sdl

 

However, I can’t find the customizable attributes.

 

I tried updating the custom schema as indicated in this link,

https://community.mega.com/t5/User-Forum/Create-custom-schema-SDL-JSON-custom-endpoint/td-p/24218

but I encountered errors while generating the new custom JSON that includes my custom attributes.

 

[Screenshot]

 

I double-checked the paths of my environment and the repository I am using, I am working with my production environment but I still can’t figure out how to resolve this error to expose my new schema with my custom attributes.

 

Any ideas? 😭

anai_barrera10_0-1727462423938.png

 

LMeden
Honored Contributor

Hi @anai_barrera10, where are you checking the schema?
Are your updates in the custom json file? 
Are you checking on a development instance or production instance of HOPEX?