Uploaded image for project: 'PHP ORMs'
  1. PHP ORMs
  2. PHPORM-227

Upsert class is failing mongodb/laravel-mongodb with graphql

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • laravel-4.7.2
    • Affects Version/s: laravel-4.7.1
    • Component/s: Laravel
    • None
    • PHP Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      In mongodb/laravel-mongodb 4.7;
      In the builder.php script there is an upsert class that seem to be failing. looping over an array twice, seem like in some cases the array value is not an array, maybe there are some checking conditions that needs to be done.
      i simply just return 0 if $values is true to make it work since i am not going to use upsert mutation
      to replicate this issue write a simple graphql query try to test it you will see the error.
       

        1. Screenshot 2024-07-24 at 02.43.29.png
          461 kB
          isaac Kolawole
        2. Screenshot 2024-07-24 at 02.47.14.png
          338 kB
          isaac Kolawole

            Assignee:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            kiyoonewton41@gmail.com isaac Kolawole
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: