{"id":25519673,"url":"https://github.com/aligent/orocommerce-graphql-bundle","last_synced_at":"2025-07-21T16:06:37.079Z","repository":{"id":145262828,"uuid":"465106023","full_name":"aligent/orocommerce-graphql-bundle","owner":"aligent","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-26T06:39:35.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-07-18T05:22:10.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aligent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-03-02T00:49:12.000Z","updated_at":"2022-04-26T06:12:02.000Z","dependencies_parsed_at":"2023-04-10T17:49:32.514Z","dependency_job_id":null,"html_url":"https://github.com/aligent/orocommerce-graphql-bundle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aligent/orocommerce-graphql-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aligent%2Forocommerce-graphql-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aligent%2Forocommerce-graphql-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aligent%2Forocommerce-graphql-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aligent%2Forocommerce-graphql-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aligent","download_url":"https://codeload.github.com/aligent/orocommerce-graphql-bundle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aligent%2Forocommerce-graphql-bundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266332532,"owners_count":23912662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-19T17:29:20.146Z","updated_at":"2025-07-21T16:06:37.059Z","avatar_url":"https://github.com/aligent.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OroCommerce GraphQL Bundle - Work In Progress\nThis bundle was created during a hackathon event at Aligent as a proof of concept for adding a GraphQL API to OroCommerce. This bundle is in VERY early stages of development and should only be used for testing and learning purposes.\n\n## Getting Started\n1. Add this repository to your `composer.json` repository section e.g \n    ```\n      \"repositories\": {\n        \"aligent-graphql\": {\n           \"type\": \"vcs\",\n           \"url\": \"https://github.com/aligent/orocommerce-graphql-bundle\",\n           \"no-api\": true\n        }\n      },\n   ```\n2. Require this bundle\n   ```shell\n      composer require aligent/orocommerce-graphql-bundle\n   ```\n3. Clear your cache\n   ```shell\n      bin/console cache:clear --env=dev\n   ```\n4. In development mode head to `/graphiql` to access an interactive graphql UI to make GrapqhQL Queries\n\n## Example Queries\n```graphql\nquery {\n  product (id: 1) {\n    sku,\n    id,\n    type,\n    inventoryStatus,\n    organization {\n      id\n    },\n    messages {\n      type\n      text\n    },\n    relatedProduct {\n      id\n    },\n    prices {\n      price {\n      \tvalue\n      },\n      unit,\n      quantity\n    }\n  },\n  \n  isUpcoming: productSearch(isUpcoming:true) {\n    totalRecords,\n    results {\n      name,\n      cplPrice\n    }\n  },\n  \n  sets: productSearch(filters: {name: \"text.primary_unit\", value: \"set\"}) {\n    totalRecords,\n    results {\n      name,\n      cplPrice\n    }\n  },\n  \n  landingPage(id: 1) {\n    content,\n    titles {\n      string\n      text\n    }\n  }\n}\n```\n\n## Example Mutations\n\nLogin Mutation:\nGenerates a WSSE authentication token using like Oro's existing `/login` API. See documentation [here](https://doc.oroinc.com/api/authentication/wsse/#header-generation) on how to generate an auth header.\n```graphql\nmutation ($generateTokenInput: GenerateCustomerTokenInput) {\n  generateCustomerToken (input: $generateTokenInput) {\n    token\n  }\n}\n```\n\nQuery Variables:\n```json\n{\n  \"generateTokenInput\": {\n    \"email\": \"\u003cEMAIL\u003e\",\n  \t\"password\": \"\u003cPASSWORD\u003e\"\n  }\n}\n```\n\nAdd to shopping list Mutation:\nAdds a product to the shopping list (Shopping list must already exist, and authenticated user must have access to it).\n```graphql\nmutation ($addToShoppingListInput: AddToShoppingListInput) {\n  addToShoppingList(input: $addToShoppingListInput) {\n    success\n  }\n}\n```\n\nQuery Variables:\n```json\n{\n  \"addToShoppingListInput\": {\n    \"sku\": \"2JD29\",\n    \"shoppingListId\": 5,\n    \"quantity\": 2.0,\n    \"unit\": \"item\"\n  }\n}\n```\n\n## Roadmap / ToDo List\n- [ ] Investigate alternative forms of authentication e.g. OroCommerce's OAuth Bundle\n- [ ] Investigate using Oro's existing `frontend_api.yml` to generate GraphQL types instead of creating them manually\n- [ ] Investigate disabling Oro's cookies for graphql requests\n- [ ] Determine how to handle twig functions in Landing Pages / CMS Blocks\n- [ ] Split out Product and Product Search resolvers\n- [ ] General Code clean-up\n- [ ] Tests, Tests, Tests\n- [ ] Add more queries and mutations for more storefront functionality \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faligent%2Forocommerce-graphql-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faligent%2Forocommerce-graphql-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faligent%2Forocommerce-graphql-bundle/lists"}