Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

whereDate returning null data #2334

Closed
Aamirbashir opened this issue Jan 10, 2022 · 0 comments
Closed

whereDate returning null data #2334

Aamirbashir opened this issue Jan 10, 2022 · 0 comments

Comments

@Aamirbashir
Copy link

  • Laravel-mongodb Version: 3.8
  • PHP Version: 8.0.13
  • Database Driver & Version: 8.0.13

Description:

I am trying to get data by date, but I get a null value

Steps to reproduce

Model.
protected $table="categories";
protected $connection="mongodb";
protected $dates=['created_at','updated_at'];

Query:
$category = category::whereDate('created_at','2022-01-06')->get();
Data in database
created_at: 2022-01-06T05:18:06.849+0000

Expected behaviour

I am trying to get data by date non of the query are working on a date.

Actual behaviour

I am getting Null data

Logs:
@mongodb mongodb locked and limited conversation to collaborators Jan 18, 2022
@divine divine converted this issue into discussion #2336 Jan 18, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant